fix crash in privmsg parsing