Skip to content
Permalink
Browse files

Fix 354 whox with workaround until 005 support. Fixes #739

Found by: key2peace
Patch by: michaelortmann
Fixes: #739
  • Loading branch information...
michaelortmann authored and vanosg committed Aug 18, 2019
1 parent 4db5490 commit 57f515e77f1cc3b5d66e113c5fb2ebd68c105844
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/mod/irc.mod/chan.c
@@ -1100,7 +1100,7 @@ static int got352(char *from, char *msg)
return 0;
}

/* got a 354: who info! - iru style
/* got a 354: who info! - ircu style whox
*/
static int got354(char *from, char *msg)
{
@@ -1116,6 +1116,10 @@ static int got354(char *from, char *msg)
user = newsplit(&msg); /* Grab the user */
host = newsplit(&msg); /* Grab the host */
nick = newsplit(&msg); /* Grab the nick */
if (strchr(nick, '.') || strchr(nick, ':')) { /* FIXME: Use 005 WHOX instead */
host = nick;
nick = newsplit(&msg);
}
flags = newsplit(&msg); /* Grab the flags */
got352or4(chan, user, host, nick, flags);
}

0 comments on commit 57f515e

Please sign in to comment.
You can’t perform that action at this time.