mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Call client module hooks for built-in-core capabilities
Patch (and commit message) by DarthGandalf, thanks. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2098 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -807,9 +807,7 @@ void CClient::HandleCap(const CString& sLine)
|
||||
bVal = false;
|
||||
|
||||
bool bAccepted = ("multi-prefix" == sCap) || ("userhost-in-names" == sCap);
|
||||
if (!bAccepted) {
|
||||
GLOBALMODULECALL(IsClientCapSupported(sCap, bVal), m_pUser, this, bAccepted = true);
|
||||
}
|
||||
GLOBALMODULECALL(IsClientCapSupported(sCap, bVal), m_pUser, this, bAccepted = true);
|
||||
|
||||
if (!bAccepted) {
|
||||
// Some unsupported capability is requested
|
||||
@@ -828,9 +826,8 @@ void CClient::HandleCap(const CString& sLine)
|
||||
m_bNamesx = bVal;
|
||||
} else if ("userhost-in-names" == *it) {
|
||||
m_bUHNames = bVal;
|
||||
} else {
|
||||
GLOBALMODULECALL(OnClientCapRequest(*it, bVal), m_pUser, this, );
|
||||
}
|
||||
GLOBALMODULECALL(OnClientCapRequest(*it, bVal), m_pUser, this, );
|
||||
|
||||
if (bVal) {
|
||||
m_ssAcceptedCaps.insert(*it);
|
||||
|
||||
Reference in New Issue
Block a user