mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user