Commit 4203384e authored by louiz’'s avatar louiz’

Do not send an empty password at all, if the user didn't provide one

parent 60569993
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment