Make irc logging more flexible.