]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
wasn't checking for notify flag
authorEvan Prodromou <evan@prodromou.name>
Mon, 30 Jun 2008 15:24:15 +0000 (11:24 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 30 Jun 2008 15:24:15 +0000 (11:24 -0400)
darcs-hash:20080630152415-84dde-7ee73e1b9b8684ebcfb957c2c33b20a8265e1e74.gz

lib/jabber.php

index 2e136cd74874ae7091b4b9b9b416dddff11e8ca7..9bccc6fe4ef27cb2431b0d19ee3fde9b60b9bdf3 100644 (file)
@@ -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);
                        }
                }
        }