martynsmith/node-irc — pull request #44 by fent (2011-10-27 06:39:59+00:00)
Title: Added optional callbacks to connect and disconnect

Okay, this pull request is just for this feature, and not the toLowerCase() channel issue.

Some people might find this useful if they want to use callbacks instead of emitters.

### connect(retryCount, callback)

### disconnect(mesage, callback)

Both arguments are still optional and if the first argument is a function, it will be treated as the callback.

Oh, and I also cleaned up a bit of the code in join and part.