Skip to content
Browse files

Emit unhandled, so others can extend functionality where needed

  • Loading branch information...
1 parent aa933a6 commit 8c93be6cf4f347e9ee1863ce7e2c03a8461c68d0 Alexandru Vladutu committed Mar 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/irc.js
View
1 lib/irc.js
@@ -431,6 +431,7 @@ function Client(server, nick, opt) {
util.log("\033[01;31mERROR: " + util.inspect(message) + "\033[0m");
}
else {
+ self.emit('unhandled', message);
if ( self.opt.debug )
util.log("\033[01;31mUnhandled message: " + util.inspect(message) + "\033[0m");
}

0 comments on commit 8c93be6

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