diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-04 20:22:07 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-04 20:22:07 -0400 |
commit | 25e93288ba63dd65285dab68935b05b4e077aff5 (patch) | |
tree | 64818929855f7121d4445b51ce66cc2a16f9f479 /lib/jabber.php | |
parent | 84b1f41279fb7259c206047ff965977935137e35 (diff) |
a little more error-checking in the queuedaemon
darcs-hash:20080705002207-84dde-c5bc4da7dbca8a32ea4126badb772e99bd4f8bf1.gz
Diffstat (limited to 'lib/jabber.php')
-rw-r--r-- | lib/jabber.php | 10 |
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) { |