Bug fix in irc adapter