Keep a "connected" state in the SocketHandler class

This commit is contained in:
Florent Le Coz committed 2014-01-04 01:59:35 +01:00
1 parent 483e17020d
commit aa53276859
4 files changed
+16 -2

No files matched your search

+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