summaryrefslogtreecommitdiffstats
path: root/source/Plugin_NewLua.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-29 09:53:47 +0200
committermadmaxoft <github@xoft.cz>2013-07-29 09:53:47 +0200
commit752e57108d300a4e9c4f8dfd3ff9a6f117dd4235 (patch)
tree99b22a3b1d3a65cb2c4d765e58eaee5d83463646 /source/Plugin_NewLua.cpp
parentMerge remote-tracking branch 'origin/master' into hunger (diff)
parentMerge pull request #15 from mc-server/webadmin (diff)
downloadcuberite-752e57108d300a4e9c4f8dfd3ff9a6f117dd4235.tar
cuberite-752e57108d300a4e9c4f8dfd3ff9a6f117dd4235.tar.gz
cuberite-752e57108d300a4e9c4f8dfd3ff9a6f117dd4235.tar.bz2
cuberite-752e57108d300a4e9c4f8dfd3ff9a6f117dd4235.tar.lz
cuberite-752e57108d300a4e9c4f8dfd3ff9a6f117dd4235.tar.xz
cuberite-752e57108d300a4e9c4f8dfd3ff9a6f117dd4235.tar.zst
cuberite-752e57108d300a4e9c4f8dfd3ff9a6f117dd4235.zip
Diffstat (limited to '')
-rw-r--r--source/Plugin_NewLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Plugin_NewLua.cpp b/source/Plugin_NewLua.cpp
index c79106761..f4c05ab42 100644
--- a/source/Plugin_NewLua.cpp
+++ b/source/Plugin_NewLua.cpp
@@ -1565,7 +1565,7 @@ const char * cPlugin_NewLua::GetHookFnName(cPluginManager::PluginHook a_Hook)
-AString cPlugin_NewLua::HandleWebRequest( HTTPRequest * a_Request )
+AString cPlugin_NewLua::HandleWebRequest(const HTTPRequest * a_Request )
{
cCSLock Lock(m_CriticalSection);
std::string RetVal = "";
@@ -1592,7 +1592,7 @@ AString cPlugin_NewLua::HandleWebRequest( HTTPRequest * a_Request )
//LOGINFO("2. Stack size: %i", lua_gettop(m_LuaState) );
// Push HTTPRequest
- tolua_pushusertype( m_LuaState, a_Request, "HTTPRequest" );
+ tolua_pushusertype( m_LuaState, (void*)a_Request, "const HTTPRequest" );
//LOGINFO("Calling bound function! :D");
int s = lua_pcall( m_LuaState, 1, 1, 0);