]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Throw an error if queueing is disable when using an IM plugin
authorCraig Andrews <candrews@integralblue.com>
Wed, 23 Jun 2010 02:01:13 +0000 (22:01 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 23 Jun 2010 02:01:13 +0000 (22:01 -0400)
lib/implugin.php

index 7125aaee8d8c19ab8489c719d42328e757c886b2..dafb8a416b23da46da4fb4a2c6ee8bab5ff80302 100644 (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');
         }
     }
 }