From 7debad9a1dedb4b896b5a2c2a2a06fdd8f1337a0 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 1 Mar 2018 13:53:02 +0000 Subject: [PATCH] oopsie --- modules/kill_namespam/kill_namespam.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kill_namespam/kill_namespam.js b/modules/kill_namespam/kill_namespam.js index 7be7fb9..4ca24cf 100644 --- a/modules/kill_namespam/kill_namespam.js +++ b/modules/kill_namespam/kill_namespam.js @@ -13,7 +13,7 @@ var kill_namespam = function(dbot) { if(event.message.match('▶')) { var matchedPattern = _.find(this.config.cliconn_patterns, function(p) { return event.message.match(p); }) if(matchedPattern) { - var ip = event.message.split(' ') + var ip = event.message.split(' ')[1] // Alternatively you can just do dbot.api.kick.kill(event.server, event.user, message); dbot.say(event.server, 'operserv', 'akill add *@'+ ip +' !P Naughty Nelly Auto-kill v6.2');