summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/jabber.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/jabber.php b/lib/jabber.php
index 2e136cd74..9bccc6fe4 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);
}
}
}