mirror of
https://github.com/znc/znc.git
synced 2026-05-10 07:14:43 +02:00
Progress
This commit is contained in:
+14
-2
@@ -1417,12 +1417,24 @@ void CIRCNetwork::IRCDisconnected() {
|
||||
CheckIRCConnect();
|
||||
}
|
||||
|
||||
void CIRCNetwork::NotifyServerDependentCap(const CString& sCap, bool bValue) {
|
||||
void CIRCNetwork::PotentiallyNotifyServerDependentCap(const CString& sCap, bool bValue) {
|
||||
CString sValue = GetIRCSock() ? GetIRCSock()->GetCapLsValue(sCap) : "";
|
||||
for (CClient* pClient : m_vClients) {
|
||||
pClient->NotifyServerDependentCap(sCap, bValue);
|
||||
pClient->PotentiallyNotifyServerDependentCap(sCap, bValue, sValue);
|
||||
}
|
||||
}
|
||||
|
||||
void CIRCNetwork::NotifyClientsAboutServerDependentCap(const CString& sCap, bool bValue, const std::function<void(CClient*, bool)>& handler) {
|
||||
CString sValue = GetIRCSock() ? GetIRCSock()->GetCapLsValue(sCap) : "";
|
||||
for (CClient* pClient : m_vClients) {
|
||||
pClient->NotifyServerDependentCap(sCap, bValue, sValue, handler);
|
||||
}
|
||||
}
|
||||
|
||||
bool CIRCNetwork::IsServerCapAccepted(const CString& sCap) const {
|
||||
return m_pIRCSock && m_pIRCSock->IsCapAccepted(sCap);
|
||||
}
|
||||
|
||||
void CIRCNetwork::SetIRCConnectEnabled(bool b) {
|
||||
m_bIRCConnectEnabled = b;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user