mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 10:02:22 +02:00
Merge 95c3099d7d into 31b9d115b0
This commit is contained in:
commit
1f0fbf58b2
1 changed files with 10 additions and 1 deletions
|
|
@ -318,7 +318,16 @@ static char *irc_parse_prefix(char *line, char **nick, char **address)
|
||||||
|
|
||||||
*nick = *address = NULL;
|
*nick = *address = NULL;
|
||||||
|
|
||||||
/* :<nick> [["!" <user>] "@" <host>] SPACE */
|
/* [@tags] :<nick> [["!" <user>] "@" <host>] SPACE */
|
||||||
|
|
||||||
|
if (*line == '@') {
|
||||||
|
while (*line != '\0' && *line != ' ')
|
||||||
|
line++;
|
||||||
|
if (*line == ' ') {
|
||||||
|
*line++ = '\0';
|
||||||
|
while (*line == ' ') line++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (*line != ':')
|
if (*line != ':')
|
||||||
return line;
|
return line;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue