Add OnUnknownUserRaw() global module call.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1314 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2008-12-31 12:22:38 +00:00
parent d6525a8efe
commit d84b9c6e9e
3 changed files with 10 additions and 0 deletions

View File

@@ -564,6 +564,7 @@ CModule::EModRet CGlobalModule::OnDeleteUser(CUser& User) { return CONTINUE; }
void CGlobalModule::OnClientConnect(CClient* pClient, const CString& sHost, unsigned short uPort) {}
CModule::EModRet CGlobalModule::OnLoginAttempt(CSmartPtr<CAuthBase> Auth) { return CONTINUE; }
void CGlobalModule::OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) {}
CModule::EModRet CGlobalModule::OnUnknownUserRaw(CClient* pClient, CString& sLine) { return CONTINUE; }
CModules::CModules() {
@@ -672,6 +673,10 @@ void CGlobalModules::OnFailedLogin(const CString& sUsername, const CString& sRem
GLOBALMODCALL(OnFailedLogin(sUsername, sRemoteIP));
}
bool CGlobalModules::OnUnknownUserRaw(CClient* pClient, CString& sLine) {
GLOBALMODHALTCHK(OnUnknownUserRaw(pClient, sLine));
}
CModule* CModules::FindModule(const CString& sModule) const {
for (unsigned int a = 0; a < size(); a++) {
if (sModule.Equals((*this)[a]->GetModName())) {