summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-06-22 22:01:13 -0400
committerCraig Andrews <candrews@integralblue.com>2010-06-22 22:01:13 -0400
commitdad0b06a386092b159118780a6a6801f3cf674de (patch)
tree49b0f5676c42034fe405e003812c347a228699bb
parent1a62d1b49378bba4b69476282b9a5d0e03073405 (diff)
Throw an error if queueing is disable when using an IM plugin
-rw-r--r--lib/implugin.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/implugin.php b/lib/implugin.php
index 7125aaee8..dafb8a416 100644
--- a/lib/implugin.php
+++ b/lib/implugin.php
@@ -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');
}
}
}