diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c index 4dce3fcf..3d32794e 100644 --- a/src/irc/core/irc.c +++ b/src/irc/core/irc.c @@ -318,7 +318,16 @@ static char *irc_parse_prefix(char *line, char **nick, char **address) *nick = *address = NULL; - /* : [["!" ] "@" ] SPACE */ + /* [@tags] : [["!" ] "@" ] SPACE */ + + if (*line == '@') { + while (*line != '\0' && *line != ' ') + line++; + if (*line == ' ') { + *line++ = '\0'; + while (*line == ' ') line++; + } + } if (*line != ':') return line;