From 41c276c9384d1f1a39c990e555d46d568c8e2b25 Mon Sep 17 00:00:00 2001 From: LinuxMercedes Date: Thu, 23 Jul 2015 17:40:37 -0500 Subject: [PATCH] Get the actual hostname from a whois call --- lib/irc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/irc.js b/lib/irc.js index b9159b25..7136c98b 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -128,6 +128,11 @@ function Client(server, nick, opt) { self.hostMask = welcomeStringWords[welcomeStringWords.length - 1]; self._updateMaxLineLength(); self.emit('registered', message); + self.whois(self.nick, function(args) { + self.nick = args.nick; + self.hostMask = args.user + "@" + args.host; + self._updateMaxLineLength(); + }); break; case 'rpl_myinfo': self.supported.usermodes = message.args[3];