Keep a "connected" state in the SocketHandler class

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:35 +01:00
parent 483e17020d
commit aa53276859
4 changed files with 16 additions and 2 deletions
+2
View File
@@ -128,6 +128,8 @@ void IrcClient::send_quit_command()
void IrcClient::send_join_command(const std::string& chan_name)
{
if (!this->connected)
this->start();
if (this->welcomed == false)
this->channels_to_join.push_back(chan_name);
else