mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix #759 - channels cannot be reattached
This was a regression caused by aed1d61 :(
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user