]> mj.ucw.cz Git - pciids.git/commitdiff
Do not send XMPP notifs to people without address
authorMichal Vaner <vorner@ucw.cz>
Thu, 9 Oct 2008 09:37:23 +0000 (11:37 +0200)
committerMichal Vaner <vorner@ucw.cz>
Thu, 9 Oct 2008 09:37:23 +0000 (11:37 +0200)
PciIds/DBQ.pm

index 0446fb43433ad3803290a31f0681b8717ff4a241..44f16149f41077609115a0def15b48f11e2b0ba8 100644 (file)
@@ -108,6 +108,7 @@ sub new( $ ) {
                        WHERE
                                pending.notification = 1
                                AND users.nextxmpp <= ?
+                               AND users.xmpp IS NOT NULL
                        ORDER BY
                                pending.user, pending.reason, history.time, history.location',
                'dropnotifsxmpp' => 'DELETE FROM pending WHERE notification = 1 AND EXISTS ( SELECT 1 FROM users WHERE users.id = pending.user AND nextxmpp <= ? )',