Fix a bug with privmsg/notice dispatching