Skip to content

Commit

Permalink
Emit unhandled, so others can extend functionality where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Vladutu committed Mar 19, 2012
1 parent aa933a6 commit 8c93be6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/irc.js
Expand Up @@ -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");
}
Expand Down

0 comments on commit 8c93be6

Please sign in to comment.