]> jfr.im git - irc/irssi/irssi.git/commitdiff
Add multi-prefix to list of capabilities to request
authordequis <redacted>
Wed, 23 Sep 2015 06:17:29 +0000 (03:17 -0300)
committerdequis <redacted>
Wed, 23 Sep 2015 06:17:29 +0000 (03:17 -0300)
Turns out event_names_list() in irc-nicklist.c already handles this.

event_who() just ignores it, which is probably a good idea since some of
the irc servers I tested this with have a bug that results in sending
multiple prefixes in the NAMES reply but not in the WHO one (they were
forks of ircd-hybrid before 7.3.0)

And NAMES always happens, anyway. WHO is omitted sometimes for huge
channels.

src/irc/core/irc-servers.c

index 825843820e57674c49cb619365461b0dcc08759a..81f0c269c51a1bdb75016f1069e46c275bed1b61 100644 (file)
@@ -228,6 +228,8 @@ static void server_init(IRC_SERVER_REC *server)
        if (conn->sasl_mechanism != SASL_MECHANISM_NONE)
                cap_toggle(server, "sasl", TRUE);
 
+       cap_toggle(server, "multi-prefix", TRUE);
+
        irc_send_cmd_now(server, "CAP LS");
 
        if (conn->password != NULL && *conn->password != '\0') {