From 266b5087675db0da15f22534d0aa2c1780b74f33 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Thu, 8 Nov 2012 19:23:55 +0000 Subject: [PATCH] Allow findWebIrc() to modify user details --- server/irc/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/irc/connection.js b/server/irc/connection.js index 53a4dad..34f0777 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -93,7 +93,7 @@ var connect_handler = function () { }; // Let the webirc/etc detection modify any required parameters - connect_data = findWebIrc(connect_data); + connect_data = findWebIrc.call(this, connect_data); // Send any initial data for webirc/etc if (connect_data.prepend_data) { @@ -145,7 +145,7 @@ function findWebIrc(connect_data) { // Check if we need to pass the users IP as its username/ident if (ip_as_username && ip_as_username.indexOf(connect_data.irc_host.hostname) > -1) { // Get a hex value of the clients IP - connect_data.username = connect_data.user.address.split('.').map(function(i, idx){ + this.user = connect_data.user.address.split('.').map(function(i, idx){ return parseInt(i, 10).toString(16); }).join(''); -- 2.25.1