summaryrefslogtreecommitdiffstats
path: root/source/Plugin_NewLua.cpp
diff options
context:
space:
mode:
authorbearbin <bearbin@gmail.com>2013-07-29 08:32:59 +0200
committerbearbin <bearbin@gmail.com>2013-07-29 08:32:59 +0200
commit798f887b65d1068ddaf072f3a3e62aef5513021a (patch)
tree750de34f6a2aa7c2dd3cb834d9596284f8726b6b /source/Plugin_NewLua.cpp
parentFixed multiple issues with the COMPILING file, including a missing endline terminator, windows line endings and also the exclusion of the addm32 thing. (diff)
parentMerge pull request #16 from mc-server/master (diff)
downloadcuberite-798f887b65d1068ddaf072f3a3e62aef5513021a.tar
cuberite-798f887b65d1068ddaf072f3a3e62aef5513021a.tar.gz
cuberite-798f887b65d1068ddaf072f3a3e62aef5513021a.tar.bz2
cuberite-798f887b65d1068ddaf072f3a3e62aef5513021a.tar.lz
cuberite-798f887b65d1068ddaf072f3a3e62aef5513021a.tar.xz
cuberite-798f887b65d1068ddaf072f3a3e62aef5513021a.tar.zst
cuberite-798f887b65d1068ddaf072f3a3e62aef5513021a.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);