only send group notices through Jabber to users with notices enabled

This commit is contained in:
Evan Prodromou 2009-01-28 23:03:03 -05:00
parent fae7c08f2d
commit 04b3add162
1 changed files with 3 additions and 1 deletions

View File

@ -403,7 +403,9 @@ function jabber_broadcast_notice($notice)
'FROM user JOIN notice_inbox ' .
'ON user.id = notice_inbox.user_id ' .
'WHERE notice_inbox.notice_id = ' . $notice->id . ' ' .
'AND notice_inbox.source = 2 ');
'AND notice_inbox.source = 2 ' .
'AND user.jabber is not null ' .
'AND user.jabbernotify = 1 ');
while ($user->fetch()) {
if (!array_key_exists($user->id, $sent_to)) {