From d437fcfac92d8c1170b926ed348fcdb5b59cce1e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 30 Jun 2008 11:24:15 -0400 Subject: [PATCH] wasn't checking for notify flag darcs-hash:20080630152415-84dde-7ee73e1b9b8684ebcfb957c2c33b20a8265e1e74.gz --- lib/jabber.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } } } -- 2.39.5