Skip to content
Browse files

Emit nick event when you encounter err_nicknameinuse

  • Loading branch information...
1 parent b94830e commit 14c7a4f48cd2880e71fb31ebeed1e833b450ac9c @akavlie committed Nov 29, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/irc.js
View
1 lib/irc.js
@@ -109,6 +109,7 @@ function Client(server, nick, opt) {
self.opt.nickMod++;
self.send("NICK", self.opt.nick + self.opt.nickMod);
self.nick = self.opt.nick + self.opt.nickMod;
+ self.emit('nick', self.opt.nick, self.nick, [], message);
break;
case "PING":
self.send("PONG", message.args[0]);

0 comments on commit 14c7a4f

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