fix bug in irc_privmsg() and abort if deadlock is detected