summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-01-14 13:53:25 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-01-14 13:53:25 +0100
commit4203384e2adcc57ddaf0ede6ca7745fb4a828c44 (patch)
tree8365318439aae0410c018226bbeb2122503b58d4
parent60569993b4532caffd8b1a6646292efbbd933585 (diff)
downloadbiboumi-4203384e2adcc57ddaf0ede6ca7745fb4a828c44.tar.gz
biboumi-4203384e2adcc57ddaf0ede6ca7745fb4a828c44.tar.bz2
biboumi-4203384e2adcc57ddaf0ede6ca7745fb4a828c44.tar.xz
biboumi-4203384e2adcc57ddaf0ede6ca7745fb4a828c44.zip
Do not send an empty password at all, if the user didn't provide one
-rw-r--r--src/irc/irc_client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 12f39d6..2549138 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -210,6 +210,8 @@ void IrcClient::send_join_command(const std::string& chan_name, const std::strin
{
if (this->welcomed == false)
this->channels_to_join.emplace_back(chan_name, password);
+ else if (password.empty())
+ this->send_message(IrcMessage("JOIN", {chan_name}));
else
this->send_message(IrcMessage("JOIN", {chan_name, password}));
this->start();