changed so irc.py uses the state from main.py