Skip to content
Browse files

update own nick on forced change

  • Loading branch information...
1 parent 7107a36 commit a81c66d038a5ed46a589befeaf13d7468955048b @einaros committed Apr 5, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 IRC.js
View
1 IRC.js
@@ -402,6 +402,7 @@ private(IRC.prototype, {
var identity = parseIdentity(from);
var data = data.match(/:?(.*)/);
if (!data) throw 'invalid NICK structure';
+ if (from == this._username) this._username = newnick;
this.emit('nick', identity.nick, data[1], raw);
},
'PART': function(raw, who, where) {

0 comments on commit a81c66d

Please sign in to comment.
Something went wrong with that request. Please try again.