summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-23 22:38:57 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-23 22:38:57 +0000
commitf0ce1d17fd019b05591569352178609f88bb5428 (patch)
treefec7632b8630a0b91e5b0ef91e4bafb03d6c8d7b /plugins
parentf4258bb6d37d16a673c268376e0dff1958c34f82 (diff)
MirLua: minor fix in m_database
git-svn-id: http://svn.miranda-ng.org/main/trunk@15603 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MirLua/src/m_database.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp
index bfbc986f55..29191403e7 100644
--- a/plugins/MirLua/src/m_database.cpp
+++ b/plugins/MirLua/src/m_database.cpp
@@ -334,7 +334,7 @@ static int lua_SettingIterator(lua_State *L)
{
lua_pushnil(L);
mir_free(param->pszSettingName);
- //mir_free(param);
+ mir_free(param);
}
return 1;
@@ -342,8 +342,8 @@ static int lua_SettingIterator(lua_State *L)
static int lua_AllSettings(lua_State *L)
{
- const char* szModule = luaL_checkstring(L, 1);
- MCONTACT hContact = lua_tointeger(L, 2);
+ MCONTACT hContact = lua_tointeger(L, 1);
+ const char* szModule = luaL_checkstring(L, 2);
enumDBSettingsParam* param = (enumDBSettingsParam*)mir_alloc(sizeof(enumDBSettingsParam));
param->count = 0;
@@ -365,6 +365,8 @@ static int lua_AllSettings(lua_State *L)
static int lua_EnumSettings(lua_State *L)
{
+ ObsoleteMethod(L, "Use \"for x in db.AllSettings \" instead");
+
LPCSTR szModule = luaL_checkstring(L, 1);
MCONTACT hContact = lua_tointeger(L, 2);