summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-09-23 03:17:29 -0300
committerdequis <dx@dxzone.com.ar>2015-09-23 03:17:29 -0300
commit7ae742293926dde06be5563efb5acd19dc2c3a75 (patch)
tree2383bf94f2813327f6c6115061cc1702ce2bc3f0 /src/irc
parentf247a43b97731cd1d58ec765dd2d10f885ef66dc (diff)
downloadirssi-7ae742293926dde06be5563efb5acd19dc2c3a75.zip
Add multi-prefix to list of capabilities to request
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.
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-servers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c
index 82584382..81f0c269 100644
--- a/src/irc/core/irc-servers.c
+++ b/src/irc/core/irc-servers.c
@@ -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') {