This commit is contained in:
dx 2017-06-05 18:17:41 +00:00 committed by GitHub
commit 1f0fbf58b2

View file

@ -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;