Commit 39284896cb92dff66494b82b55fb39d84116297e
1 parent
124c24ccc9
Exists in
master
echi gw blacklist
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
index.js
... | ... | @@ -59,6 +59,9 @@ redisClient.on("pmessage", function (pattern, channel, message) { |
59 | 59 | } |
60 | 60 | else if (channel.match(/^echi/)) { |
61 | 61 | var gateway = channel.match(/gw:(.*)\.message$/)[1]; |
62 | + if (gateway == config.globals.echi_gw_blacklist) { | |
63 | + return; | |
64 | + } | |
62 | 65 | client.say(config.globals.topup_message_channel, message + ' (' + gateway + ')'); |
63 | 66 | } |
64 | 67 | }); |