mirror of
https://github.com/znc/znc.git
synced 2026-06-12 17:54:59 +02:00
Fix #759 - channels cannot be reattached
This was a regression caused by aed1d61 :(
This commit is contained in:
+4
-1
@@ -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