From cde3bc585fd7763a4840fc865f1cc4164c22293e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 27 Aug 2008 21:10:02 -0400 Subject: return correct values for success in handling messages darcs-hash:20080828011002-84dde-8099da64841ab137e915249025857f34084c0f34.gz --- scripts/ombqueuehandler.php | 7 +++++-- scripts/xmppqueuehandler.php | 2 +- 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() { -- cgit v1.2.3-54-g00ecf