gf3/IRC-js — pull request #54 by cmr (2012-02-24 16:28:04+00:00)
Title: Emit 'connected' event later in the connection

Emitting 'connected' as soon as the actual connection is established isn't good. Any event handlers that, for example, join a channel, will not succeed because USER/NICK hasn't been sent. Instead, should wait until after the MOTD is received (which is sent after NICK/USER combo on the IRCd's I tried) to fire those.