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:
psychon
2010-07-09 18:02:04 +00:00
parent 9ae959b800
commit 47a5ab3751
3 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -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) {