Commit 7ce81fc75399a33d592b322728dd215862e55e94
1 parent
f3eaae5ffb
Exists in
master
blacklists
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
index.js
... | ... | @@ -130,6 +130,13 @@ xmpp.on('chat', function(from, message) { |
130 | 130 | return; |
131 | 131 | } |
132 | 132 | |
133 | + if (config.globals.blacklists) { | |
134 | + blaclists = config.globals.blacklists.split(','); | |
135 | + if (blacklists.indexOf(from.toLowerCase()) >= 0) { | |
136 | + return; | |
137 | + } | |
138 | + } | |
139 | + | |
133 | 140 | logger.info('Incoming message via XMPP ', {to: config.globals.jid, from: from, message: message}); |
134 | 141 | |
135 | 142 | if (warming_up) { |