Skip to content

Commit

Permalink
Get the actual hostname from a whois call
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxMercedes committed Jul 24, 2015
1 parent 40bcc91 commit 41c276c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 41c276c

Please sign in to comment.