Keep a "connected" state in the SocketHandler class
This commit is contained in:
1 parent
483e17020d
commit
aa53276859
4 files changed
+16
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user