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:
psychon
2010-08-03 17:25:59 +00:00
parent 88daf2fa5a
commit 3dd57bdf06

View File

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