stickychan: Don't join channels when not connected.

When the connection is lost and znc is reconnecting, stickychan would continually try to join channels and spam messages.
This commit is contained in:
NuclearW
2014-08-22 18:18:18 -04:00
parent 0908023a63
commit aa18818474
+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()));