mirror of
https://github.com/irssi/irssi.git
synced 2025-04-27 13:31:14 -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;
|
*nick = ++line;
|
||||||
while (*line != '\0' && *line != ' ') {
|
while (*line != '\0' && *line != ' ') {
|
||||||
if (*line == '!') {
|
if (*line == '!') {
|
||||||
*line = '\0';
|
*line++ = '\0';
|
||||||
*address = line+1;
|
*address = line;
|
||||||
|
while (*line != '\0' && *line != ' ')
|
||||||
|
line++;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
line++;
|
line++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user