fix error in privmsg handling