]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
return correct values for success in handling messages
authorEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 01:10:02 +0000 (21:10 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 01:10:02 +0000 (21:10 -0400)
darcs-hash:20080828011002-84dde-8099da64841ab137e915249025857f34084c0f34.gz

scripts/ombqueuehandler.php
scripts/xmppqueuehandler.php

index 36d5d7b9c1c7115f1791943d3462ef9a8f6a2254..28c76db9a6fa4ab11e760f23d63c2ac9e91ae176 100755 (executable)
@@ -44,8 +44,11 @@ class OmbQueueHandler extends QueueHandler {
        }
 
        function handle_notice($notice) {
-               if (!$this->is_remote($notice)) {
-                       omb_broadcast_remote_subscribers($notice);
+               if ($this->is_remote($notice)) {
+                       # It's fine, we're done with it.
+                       return true;
+               } else {
+                       return omb_broadcast_remote_subscribers($notice);
                }
        }
        
index e6f5368f488e7fe5b749eb95beec89844ce4e261..8fe8b1360a1fe6a6375cb7c3b6ddb0430b8c18e0 100755 (executable)
@@ -46,7 +46,7 @@ class XmppQueueHandler extends QueueHandler {
        }
 
        function handle_notice($notice) {
-               jabber_broadcast_notice($notice);
+               return jabber_broadcast_notice($notice);
        }
        
        function finish() {