some irc related fixes