summaryrefslogtreecommitdiffstats
path: root/source/cWebPlugin_Lua.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-31 01:38:18 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-31 01:38:18 +0100
commitc142424571a3744e8b68ec9746eaa05505c03af5 (patch)
tree9a8950e671cafbe4eddc096cdc648d7876c1b1de /source/cWebPlugin_Lua.cpp
parentReplaced most FILE operations with a cFile object (diff)
downloadcuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar
cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.gz
cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.bz2
cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.lz
cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.xz
cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.zst
cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.zip
Diffstat (limited to '')
-rw-r--r--source/cWebPlugin_Lua.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cWebPlugin_Lua.cpp b/source/cWebPlugin_Lua.cpp
index 40e8fcb76..d1446ba24 100644
--- a/source/cWebPlugin_Lua.cpp
+++ b/source/cWebPlugin_Lua.cpp
@@ -76,13 +76,13 @@ std::string cWebPlugin_Lua::HandleRequest( HTTPRequest* a_Request )
if( Tab )
{
- LOGINFO("1. Stack size: %i", lua_gettop(LuaState) );
+ //LOGINFO("1. Stack size: %i", lua_gettop(LuaState) );
lua_rawgeti( LuaState, LUA_REGISTRYINDEX, Tab->Reference); // same as lua_getref()
- LOGINFO("2. Stack size: %i", lua_gettop(LuaState) );
+ //LOGINFO("2. Stack size: %i", lua_gettop(LuaState) );
// Push HTTPRequest
tolua_pushusertype( LuaState, a_Request, "HTTPRequest" );
- LOGINFO("Calling bound function! :D");
+ //LOGINFO("Calling bound function! :D");
int s = lua_pcall( LuaState, 1, 1, 0);
if ( s != 0 )
@@ -103,7 +103,7 @@ std::string cWebPlugin_Lua::HandleRequest( HTTPRequest* a_Request )
RetVal += tolua_tostring(LuaState, -1, 0);
lua_pop(LuaState, 1); // Pop return value
- LOGINFO("ok. Stack size: %i", lua_gettop(LuaState) );
+ //LOGINFO("ok. Stack size: %i", lua_gettop(LuaState) );
}
return RetVal;