diff --git a/index.js b/index.js index 36b838f..231a064 100644 --- a/index.js +++ b/index.js @@ -59,6 +59,9 @@ redisClient.on("pmessage", function (pattern, channel, message) { } else if (channel.match(/^echi/)) { var gateway = channel.match(/gw:(.*)\.message$/)[1]; + if (gateway == config.globals.echi_gw_blacklist) { + return; + } client.say(config.globals.topup_message_channel, message + ' (' + gateway + ')'); } });