1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Send the CAP LS after sending the proxy strings

Patch by @dequis
This commit is contained in:
LemonBoy 2015-08-20 23:37:34 +02:00
parent 2d7030a844
commit b0e7c18376

View File

@ -202,8 +202,6 @@ static void server_init(IRC_SERVER_REC *server)
conn = server->connrec;
irc_send_cmd_now(server, "CAP LS");
if (conn->proxy != NULL && conn->proxy_password != NULL &&
*conn->proxy_password != '\0') {
cmd = g_strdup_printf("PASS %s", conn->proxy_password);
@ -217,6 +215,8 @@ static void server_init(IRC_SERVER_REC *server)
g_free(cmd);
}
irc_send_cmd_now(server, "CAP LS");
if (conn->password != NULL && *conn->password != '\0') {
/* send password */
cmd = g_strdup_printf("PASS %s", conn->password);