mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
mesg
This commit is contained in:
parent
04c411c6c1
commit
ef500e2d96
@ -61,6 +61,7 @@ var dns = function(dbot) {
|
||||
if(event.message.match('CLICONN')) {
|
||||
var ip = event.message.match('CLICONN ([^ ]+).*?((?:[0-9]{1,3}\.){3}[0-9]{1,3}) users');
|
||||
revIp = ip[2].trim().split('.').reverse().join('.');
|
||||
dbot.say(event.server, '#dnsbl', 'DEBUG: Looking up ' + ip[2] + ' for ' + ip[1] + ' @ ' + revIp);
|
||||
dnsm.lookup(revIp + '.cbl.abuseat.org', function(err, res) {
|
||||
if(!err && res) {
|
||||
dbot.say(event.server, '#dnsbl', 'ALERT: ' + ip[1] + ' connecting from ' + ip[2] + ' may well be NAUGHTY.');
|
||||
|
Loading…
Reference in New Issue
Block a user