Throw an error if queueing is disable when using an IM plugin

This commit is contained in:
Craig Andrews 2010-06-22 22:01:13 -04:00
parent 1a62d1b493
commit dad0b06a38

View File

@ -619,8 +619,13 @@ abstract class ImPlugin extends Plugin
function initialize()
{
if( ! common_config('queue', 'enabled'))
{
throw new ServerException("Queueing must be enabled to use IM plugins");
}
if(is_null($this->transport)){
throw new Exception('transport cannot be null');
throw new ServerException('transport cannot be null');
}
}
}