mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02: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
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue