summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-12-27 11:53:29 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-01-04 01:59:35 +0100
commitaa53276859a5fc80071d24111a311297e058e603 (patch)
treefeac10c8765c161684a558416ef537abfe1707e4 /src/irc
parent483e17020dc4f19223001ab36da0dc48a15a0d3e (diff)
downloadbiboumi-aa53276859a5fc80071d24111a311297e058e603.tar.gz
biboumi-aa53276859a5fc80071d24111a311297e058e603.tar.bz2
biboumi-aa53276859a5fc80071d24111a311297e058e603.tar.xz
biboumi-aa53276859a5fc80071d24111a311297e058e603.zip
Keep a "connected" state in the SocketHandler class
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 881de96..4e37a63 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -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