some changes to privmsg