Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Emit nick event when you encounter err_nicknameinuse

  • Loading branch information...
commit 14c7a4f48cd2880e71fb31ebeed1e833b450ac9c 1 parent b94830e
@akavlie authored
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]);
Please sign in to comment.
Something went wrong with that request. Please try again.