Moved irc protocol function calls from __init__ to main_loop