summaryrefslogtreecommitdiff
path: root/lib/jabber.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-30 11:24:15 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-30 11:24:15 -0400
commitd437fcfac92d8c1170b926ed348fcdb5b59cce1e (patch)
tree22b0f1c4bc79f4d46d9c950b708ffbf6c6b0aabc /lib/jabber.php
parente41a90e7e95e4486bff943acbd992beaf9912211 (diff)
wasn't checking for notify flag
darcs-hash:20080630152415-84dde-7ee73e1b9b8684ebcfb957c2c33b20a8265e1e74.gz
Diffstat (limited to 'lib/jabber.php')
-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);
}
}
}