Skip to content

Commit

Permalink
No longer tries to emit network errors as events.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raevel committed Oct 19, 2010
1 parent d38f4ff commit ecc966d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ function IRC (options) {
line = buffer[i], message = buildMessage(Parser.parse(line + "\r\n"))
if (!internal.connected)
do_connect.call(this) // We're "connected" once we receive data
emitter.emit(message.command.toLowerCase(), message)
if (message.command.toLowerCase() !== "error") {
emitter.emit(message.command.toLowerCase(), message)
}
}
}
catch (e) {
Expand Down

0 comments on commit ecc966d

Please sign in to comment.