fix segfault in irc protocol parser.