Fix subtle bug in irc command filtering