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

View File

@@ -435,7 +435,10 @@ void CClient::ReadLine(const CString& sData) {
CChan* pChan = m_pNetwork->FindChan(sChannel);
if (pChan) {
pChan->JoinUser(sKey);
if (pChan->IsDetached())
pChan->AttachUser(this);
else
pChan->JoinUser(sKey);
continue;
}