summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-27 21:10:02 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-27 21:10:02 -0400
commitcde3bc585fd7763a4840fc865f1cc4164c22293e (patch)
tree39f34da89cb1151eac863f225166737974f95c4d /scripts
parent6b1f391306b79c3083663d87faee4dc8fa3fea5f (diff)
return correct values for success in handling messages
darcs-hash:20080828011002-84dde-8099da64841ab137e915249025857f34084c0f34.gz
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ombqueuehandler.php7
-rwxr-xr-xscripts/xmppqueuehandler.php2
2 files changed, 6 insertions, 3 deletions
diff --git a/scripts/ombqueuehandler.php b/scripts/ombqueuehandler.php
index 36d5d7b9c..28c76db9a 100755
--- a/scripts/ombqueuehandler.php
+++ b/scripts/ombqueuehandler.php
@@ -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);
}
}
diff --git a/scripts/xmppqueuehandler.php b/scripts/xmppqueuehandler.php
index e6f5368f4..8fe8b1360 100755
--- a/scripts/xmppqueuehandler.php
+++ b/scripts/xmppqueuehandler.php
@@ -46,7 +46,7 @@ class XmppQueueHandler extends QueueHandler {
}
function handle_notice($notice) {
- jabber_broadcast_notice($notice);
+ return jabber_broadcast_notice($notice);
}
function finish() {