mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +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')) {
|
if(event.message.match('CLICONN')) {
|
||||||
var ip = event.message.match('CLICONN ([^ ]+).*?((?:[0-9]{1,3}\.){3}[0-9]{1,3}) users');
|
var ip = event.message.match('CLICONN ([^ ]+).*?((?:[0-9]{1,3}\.){3}[0-9]{1,3}) users');
|
||||||
revIp = ip[2].trim().split('.').reverse().join('.');
|
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) {
|
dnsm.lookup(revIp + '.cbl.abuseat.org', function(err, res) {
|
||||||
if(!err && res) {
|
if(!err && res) {
|
||||||
dbot.say(event.server, '#dnsbl', 'ALERT: ' + ip[1] + ' connecting from ' + ip[2] + ' may well be NAUGHTY.');
|
dbot.say(event.server, '#dnsbl', 'ALERT: ' + ip[1] + ' connecting from ' + ip[2] + ' may well be NAUGHTY.');
|
||||||
|
Loading…
Reference in New Issue
Block a user