Fix the double sending of the USER command

This commit is contained in:
Florent Le Coz
2015-10-31 05:36:33 +01:00
parent 6c42286109
commit 2c932cf0f7
+4 -2
View File
@@ -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();
}