From 3dd57bdf06e7bb315af5252dbfe293cfbc5e4121 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 3 Aug 2010 17:25:59 +0000 Subject: [PATCH] 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 --- Client.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Client.cpp b/Client.cpp index d7b2e374..c22b53a1 100644 --- a/Client.cpp +++ b/Client.cpp @@ -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);