Merge pull request #639 from NuclearW/stickychan-reconnect

stickychan: Don't join channels when not connected.
This commit is contained in:
Alexey Sokolov
2014-09-25 23:24:51 +01:00
+1 -1
View File
@@ -103,7 +103,7 @@ public:
continue;
}
}
if (!pChan->IsOn()) {
if (!pChan->IsOn() && m_pNetwork->IsIRCConnected()) {
PutModule("Joining [" + pChan->GetName() + "]");
PutIRC("JOIN " + pChan->GetName() + (pChan->GetKey().empty()
? "" : " " + pChan->GetKey()));