From e0ff13f6c17acd61a2123737688042703a2f7a42 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Mon, 12 Aug 2019 17:07:17 +0200 Subject: [PATCH] enable irc cap ls 302 --- src/irc/core/irc-servers.c | 2 +- src/irc/core/irc-servers.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 7057c02a..8a7137eb 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -240,7 +240,7 @@ static void server_init(IRC_SERVER_REC *server) irc_cap_toggle(server, "multi-prefix", TRUE); - irc_send_cmd_now(server, "CAP LS"); + irc_send_cmd_now(server, "CAP LS " CAP_LS_VERSION); if (conn->password != NULL && *conn->password != '\0') { /* send password */ diff --git a/src/irc/core/irc-servers.h b/src/irc/core/irc-servers.h index 57b65527..162d845f 100644 --- a/src/irc/core/irc-servers.h +++ b/src/irc/core/irc-servers.h @@ -5,6 +5,8 @@ #include #include +#define CAP_LS_VERSION "302" + /* returns IRC_SERVER_REC if it's IRC server, NULL if it isn't */ #define IRC_SERVER(server) \ PROTO_CHECK_CAST(SERVER(server), IRC_SERVER_REC, chat_type, "IRC")