Commit 5442d7048e97a1bc31dae2e75ba8b1131f016d2d
1 parent
f74e48d9b7
Exists in
master
gw blacklist can have multiple value separated by colon
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
index.js
... | ... | @@ -61,7 +61,7 @@ redisClient.on("pmessage", function (pattern, channel, message) { |
61 | 61 | } |
62 | 62 | else if (channel.match(/^echi/)) { |
63 | 63 | var gateway = channel.match(/gw:(.*)\.message$/)[1]; |
64 | - if (gateway == config.globals.echi_gw_blacklist) { | |
64 | + if (config.globals.echi_gw_blacklist.split(',').indexOf(gateway) >= 0) { | |
65 | 65 | return; |
66 | 66 | } |
67 | 67 | client.say(config.globals.topup_message_channel, message + ' (' + gateway + ')'); |