irclogger: fix a bug