summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jabber.php')
-rw-r--r--lib/jabber.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index 9bccc6fe4..8f8d6a4d8 100644
--- a/lib/jabber.php
+++ b/lib/jabber.php
@@ -132,10 +132,18 @@ function jabber_broadcast_notice($notice) {
while ($sub->fetch()) {
$user = User::staticGet($sub->subscriber);
if ($user && $user->jabber && $user->jabbernotify) {
- jabber_send_message($user->jabber, $msg);
+ common_log(LOG_INFO,
+ 'Sending notice ' . $notice->id . ' to ' . $user->jabber,
+ __FILE__);
+ $success = jabber_send_message($user->jabber, $msg);
+ if (!$success) {
+ # XXX: Not sure, but I think that's the right thing to do
+ return false;
+ }
}
}
}
+ return true;
}
function jabber_format_notice(&$profile, &$notice) {