Fix #759 - channels cannot be reattached

This was a regression caused by aed1d61 :(
This commit is contained in:
J-P Nurmi
2014-11-26 12:34:47 +01:00
parent abb0ca5bd3
commit 4a31ec57de
4 changed files with 7 additions and 6 deletions
+1 -3
View File
@@ -133,10 +133,8 @@ void CChan::JoinUser(const CString& sKey) {
if (!sKey.empty()) {
SetKey(sKey);
}
if (!IsOn() || !IsDetached()) {
if (!IsOn()) {
m_pNetwork->PutIRC("JOIN " + GetName() + " " + GetKey());
SetDetached(false);
return;
}
}