summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-21 18:52:04 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-21 18:52:04 +0000
commita08db3aa08808c6adec9891d429f262126faca80 (patch)
tree497fb2e16203e8bcb8df9a6bbf3b6b7fb7c7f4ec /plugins/MirLua
parentb048ea322fac0d6cb59b9f1645fad9d7a898fc57 (diff)
MirLua: fix for m_variables
git-svn-id: http://svn.miranda-ng.org/main/trunk@14305 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/m_variables.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_variables.cpp b/plugins/MirLua/src/m_variables.cpp
index bb0b0d908e..cf5b6e9890 100644
--- a/plugins/MirLua/src/m_variables.cpp
+++ b/plugins/MirLua/src/m_variables.cpp
@@ -2,6 +2,12 @@
static int lua_FormatString(lua_State *L)
{
+ if (!ServiceExists(MS_VARS_FORMATSTRING))
+ {
+ lua_pushvalue(L, 1);
+ return 1;
+ }
+
ptrT format(mir_utf8decodeT(luaL_checkstring(L, 1)));
MCONTACT hContact = lua_tointeger(L, 2);