summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core')
-rw-r--r--src/irc/core/irc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c
index d7afaa23..0743dae2 100644
--- a/src/irc/core/irc.c
+++ b/src/irc/core/irc.c
@@ -322,12 +322,14 @@ static char *irc_parse_prefix(char *line, char **nick, char **address)
{
*nick = *address = NULL;
+ /* :<nick> [["!" <user>] "@" <host>] SPACE */
+
if (*line != ':')
return line;
*nick = ++line;
while (*line != '\0' && *line != ' ') {
- if (*line == '!') {
+ if (*line == '!' || *line == '@') {
*line++ = '\0';
*address = line;
while (*line != '\0' && *line != ' ')