Commit dad0b06a authored by Craig Andrews's avatar Craig Andrews

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

parent 1a62d1b4
......@@ -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');
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment