Fixed error when connecting to irc client, etc

Didn't mean to make this branch again, oops.