mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
Remove the CClient* argument to all module calls
OnUnknownUserRaw() and OnClientCapRequest() were both getting a CClient* as their first argument, but the proper way to pass a CClient* argument to a module is via GetClient(). Since recently, all the places where this module hooks are called do this properly, so we can remove this bogus argument. No module that is part of znc is affected by this change. Let's see how many external ones break. ;) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2077 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+2
-2
@@ -67,7 +67,7 @@ void CClient::ReadLine(const CString& sData) {
|
||||
if (IsAttached()) {
|
||||
MODULECALL(OnUserRaw(sLine), m_pUser, this, return);
|
||||
} else {
|
||||
GLOBALMODULECALL(OnUnknownUserRaw(this, sLine), m_pUser, this, return);
|
||||
GLOBALMODULECALL(OnUnknownUserRaw(sLine), m_pUser, this, return);
|
||||
}
|
||||
|
||||
CString sCommand = sLine.Token(0);
|
||||
@@ -826,7 +826,7 @@ void CClient::HandleCap(const CString& sLine)
|
||||
} else if ("userhost-in-names" == *it) {
|
||||
m_bUHNames = bVal;
|
||||
} else {
|
||||
GLOBALMODULECALL(OnClientCapRequest(this, *it, bVal), m_pUser, this, );
|
||||
GLOBALMODULECALL(OnClientCapRequest(*it, bVal), m_pUser, this, );
|
||||
}
|
||||
|
||||
if (bVal) {
|
||||
|
||||
Reference in New Issue
Block a user