Add new hook OnEmbeddedWebRequest to modperl.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2133 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
darthgandalf
2010-09-12 16:50:08 +00:00
parent a440da25c6
commit 0b69ae8bd4
3 changed files with 16 additions and 1 deletions
+13
View File
@@ -774,3 +774,16 @@ CModule::EModRet CPerlModule::OnTimerAutoJoin(CChan& Channel) {
return result;
}
bool CPerlModule::OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) {
bool result = false;
PSTART_IDF(OnEmbeddedWebRequest);
mXPUSHi(static_cast<int>(false)); // Default value
PUSH_PTR(CWebSock*, &WebSock);
PUSH_STR(sPageName);
PUSH_PTR(CTemplate*, &Tmpl);
PCALLMOD(,
result = SvUV(ST(0));
);
return result;
}