1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #1312 from ailin-nemui/nocap

slightly improve nocap detection
This commit is contained in:
ailin-nemui 2021-05-17 10:54:21 +02:00 committed by GitHub
commit 5df2d6e300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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