summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_database.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-15 13:22:04 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-15 13:22:04 +0000
commit547ec570deb26f93fa4ab974a76c0e964a635586 (patch)
tree1faf753295780f76f841c80b57106ec508b86133 /plugins/MirLua/src/m_database.cpp
parent779e5910d73c0b14454bcbce6206f77e139c8df8 (diff)
MirLua:
- added ansi/unicode support for some fields - added default value for GetContactSetting git-svn-id: http://svn.miranda-ng.org/main/trunk@14175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_database.cpp')
-rw-r--r--plugins/MirLua/src/m_database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp
index 91f7361e88..5aedf56b8f 100644
--- a/plugins/MirLua/src/m_database.cpp
+++ b/plugins/MirLua/src/m_database.cpp
@@ -59,7 +59,7 @@ static int lua_GetContactSetting(lua_State *L)
DBVARIANT dbv;
if (db_get(hContact, szModule, szSetting, &dbv))
{
- lua_pushnil(L);
+ lua_pushvalue(L, 4);
return 1;
}
@@ -85,7 +85,7 @@ static int lua_GetContactSetting(lua_State *L)
default:
db_free(&dbv);
- lua_pushnil(L);
+ lua_pushvalue(L, 4);
return 1;
}