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:
J-P Nurmi
2014-11-10 21:39:54 +01:00
parent 24a72d9a32
commit aed1d61a98
5 changed files with 14 additions and 16 deletions

View File

@@ -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;
}