added isConnected() call to irc