mirror of
https://github.com/irssi/irssi.git
synced 2025-04-27 05:21:16 -05:00
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:
parent
a44d86e007
commit
24e88a6772
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user