fix bug with query and irc