summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-10-31 05:36:33 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-10-31 05:36:33 +0100
commit2c932cf0f7ca9bc82430c1da5097653f6a4d0bf4 (patch)
tree1000aceea9aff783130a3a43e221bc3f7725f986 /src/irc
parent6c42286109fceddd70eacc467811b102b41a831e (diff)
downloadbiboumi-2c932cf0f7ca9bc82430c1da5097653f6a4d0bf4.tar.gz
biboumi-2c932cf0f7ca9bc82430c1da5097653f6a4d0bf4.tar.bz2
biboumi-2c932cf0f7ca9bc82430c1da5097653f6a4d0bf4.tar.xz
biboumi-2c932cf0f7ca9bc82430c1da5097653f6a4d0bf4.zip
Fix the double sending of the USER command
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 8f92f9b..f6b8f9c 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -131,9 +131,11 @@ void IrcClient::on_connected()
this->realname = options.realname.value();
this->send_user_command(username, realname);
}
-#endif
+ else
+ this->send_user_command(this->username, this->realname);
+#else
this->send_user_command(this->username, this->realname);
-
+#endif
this->send_gateway_message("Connected to IRC server"s + (this->use_tls ? " (encrypted)": "") + ".");
this->send_pending_data();
}