summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2015-08-20 23:37:34 +0200
committerLemonBoy <thatlemon@gmail.com>2015-08-20 23:37:34 +0200
commitb0e7c183764e696b1e1a79c51651bc6573257bf8 (patch)
tree2b9d4fb7e82637ad766466ebc40aaf856a18b5ad
parent2d7030a84445ee4547af43970cfb252b36246e62 (diff)
downloadirssi-b0e7c183764e696b1e1a79c51651bc6573257bf8.zip
Send the CAP LS after sending the proxy strings
Patch by @dequis
-rw-r--r--src/irc/core/irc-servers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c
index 335c88ef..58dc9b25 100644
--- a/src/irc/core/irc-servers.c
+++ b/src/irc/core/irc-servers.c
@@ -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);