mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Revise CChan::JoinUser() & AttachUser()
The old AttachUser() that sent JOIN without topic or names replies would leave clients in incomplete/broken state. JoinUser() was doing two things; depending on passed arguments it was either joining user on the channel on IRC, or attaching clients (properly). Now JoinUser() joins the user on IRC, and AttachUser() attaches as expected from the method names.
This commit is contained in:
@@ -435,7 +435,7 @@ void CClient::ReadLine(const CString& sData) {
|
||||
|
||||
CChan* pChan = m_pNetwork->FindChan(sChannel);
|
||||
if (pChan) {
|
||||
pChan->JoinUser(false, sKey);
|
||||
pChan->JoinUser(sKey);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user