1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

slightly improve nocap detection

Fixes #1311
This commit is contained in:
Ailin Nemui 2021-05-10 08:34:19 +02:00
parent b4b040d93d
commit f5303c153c

View File

@ -313,7 +313,8 @@ static void server_init_1(IRC_SERVER_REC *server)
signal_emit("server waiting cap ls", 2, server, CAP_LS_VERSION);
irc_send_cmd_now(server, "CAP LS " CAP_LS_VERSION);
/* to detect non-CAP servers, send this bogus join */
irc_send_cmd_now(server, "JOIN ");
/* the : will make INSPIRCD respond with 451 instead of 461, too */
irc_send_cmd_now(server, "JOIN :");
}
if (conn->starttls)
irc_server_send_starttls(server);