DNSBL: Include blocked address in error log
authorDarren <darren@darrenwhitlen.com>
Sun, 21 Jul 2013 22:49:50 +0000 (23:49 +0100)
committerDarren <darren@darrenwhitlen.com>
Sun, 21 Jul 2013 22:49:50 +0000 (23:49 +0100)
server_modules/dnsbl.js

index 984c0b4ea8f3c68aa9bdb6c40ceba02bdce80b0f..d0f6639e344b68d6e428c8a9ee53f727f9121e00 100644 (file)
@@ -26,7 +26,7 @@ module.on('irc connecting', function (event, event_data) {
 
     isBlacklisted(client_addr, function(is_blocked) {
         if (is_blocked) {
-            var err = new Error('DNSBL blocked');
+            var err = new Error('DNSBL blocked (' + client_addr + ')');
             err.code = 'Blacklisted';
 
             event_data.connection.emit('error', err);