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")