Rewrite IRC script to use irc3