The groundwork is laid down so that the function inside class IRCBot are callable as threads or deamons.

Some code cleaning.