diff --git a/lib/jabber.php b/lib/jabber.php index 2e136cd748..9bccc6fe4e 100644 --- a/lib/jabber.php +++ b/lib/jabber.php @@ -131,9 +131,8 @@ function jabber_broadcast_notice($notice) { $msg = jabber_format_notice($profile, $notice); while ($sub->fetch()) { $user = User::staticGet($sub->subscriber); - if ($user && $user->jabber) { - jabber_send_message($user->jabber, - $msg); + if ($user && $user->jabber && $user->jabbernotify) { + jabber_send_message($user->jabber, $msg); } } }