mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Make CClient::PutClient() handle extended-join
This commit is contained in:
@@ -493,20 +493,6 @@ bool CIRCSock::OnJoinMessage(CJoinMessage& Message) {
|
||||
if (pChan->IsDetached()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (HasExtendedJoin()) {
|
||||
CString sLine = ":" + Nick.GetNickMask() + " JOIN " + pChan->GetName();
|
||||
|
||||
const vector<CClient*>& vClients = m_pNetwork->GetClients();
|
||||
for (CClient* pClient : vClients) {
|
||||
if (pClient->HasExtendedJoin()) {
|
||||
m_pNetwork->PutUser(Message, pClient);
|
||||
} else {
|
||||
m_pNetwork->PutUser(sLine, pClient);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user