Prototype of running irc client on second thread