summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-16 12:39:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-16 12:39:33 +0300
commit12d07d0386488c5aeec88e11bc465e67a021db4e (patch)
tree0409dd1b54bc08d92e482aa8a55e2d75fc5e094a /plugins/MirLua
parentaebb5bf87082a92c82feb9a8447fcbced9275ae2 (diff)
MirLua - fix for variables parser
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/variables_loader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/variables_loader.cpp b/plugins/MirLua/src/variables_loader.cpp
index c3cbd26c80..423b5aa475 100644
--- a/plugins/MirLua/src/variables_loader.cpp
+++ b/plugins/MirLua/src/variables_loader.cpp
@@ -166,7 +166,7 @@ INT_PTR FormatString(void *obj, WPARAM wParam, LPARAM)
lua_pushstring(L, T2Utf(result));
- return (INT_PTR)result;
+ return (INT_PTR)result.detach();
}
/***********************************************/
@@ -176,7 +176,7 @@ void CMLuaVariablesLoader::LoadVariables()
if (ServiceExists(MS_VARS_FORMATSTRING))
return;
- CreateServiceFunctionObj(MS_VARS_FORMATSTRING, FormatString, L);
+ // CreateServiceFunctionObj(MS_VARS_FORMATSTRING, FormatString, L);
Log("Loading variables functions");
@@ -198,4 +198,4 @@ void CMLuaVariablesLoader::Load(lua_State *L)
{
CMLuaVariablesLoader loader(L);
loader.LoadVariables();
-} \ No newline at end of file
+}