From e88f2a70b159399f2483ed181d6ad9c9ffc0f9c8 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 20 Oct 2015 18:29:05 +0000 Subject: [PATCH] mesg --- modules/dns/dns.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/dns/dns.js b/modules/dns/dns.js index 3ccef5b..ed0e413 100644 --- a/modules/dns/dns.js +++ b/modules/dns/dns.js @@ -43,16 +43,17 @@ var dns = function(dbot) { }, '~dnsbl': function(event) { - var revIp = event.message.trim().split('.').reverse().join('.'); + var revIp = event.input[1].trim().split('.').reverse().join('.'); dnsm.lookup(revIp + '.cbl.abuseat.org', function(err, res) { if(!err && res) { - event.reply(event.message + ' is listed as an abusive IP.'); + event.reply(event.input[1] + ' is listed as an abusive IP.'); } else { - event.reply(event.message + ' does not seem to be a Naughty Nancy.'); + event.reply(event.input[1] + ' does not seem to be a Naughty Nancy.'); } }); } }; + commands['~dnsbl'].regex = [/^dnsbl ([\d\w\s-]*)/, 2]; this.commands = commands; this.on = 'PRIVMSG';