irc_parse_prefix() didn't work properly if user name had ! characters.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1509 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-21 23:14:04 +00:00 committed by cras
parent a44d86e007
commit 24e88a6772

View File

@ -315,8 +315,11 @@ static char *irc_parse_prefix(char *line, char **nick, char **address)
*nick = ++line;
while (*line != '\0' && *line != ' ') {
if (*line == '!') {
*line = '\0';
*address = line+1;
*line++ = '\0';
*address = line;
while (*line != '\0' && *line != ' ')
line++;
break;
}
line++;
}