summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-05-20 09:13:43 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-05-20 09:13:43 +0000
commitc44d4835faed14e31a1e531537c30398ce9e7e0c (patch)
tree18c35f982d329a821f9f7c0e5f9f6a6921fb2ffe /plugins/MirLua
parentfed605962b616cd7f572665c389b4be5cb40c477 (diff)
MirLua: fixed GetContactInfo function
git-svn-id: http://svn.miranda-ng.org/main/trunk@16856 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/m_database.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp
index c11dd7b4dc..09e90633e5 100644
--- a/plugins/MirLua/src/m_database.cpp
+++ b/plugins/MirLua/src/m_database.cpp
@@ -104,7 +104,7 @@ static int db_GetContactInfo(lua_State *L)
MCONTACT hContact = luaL_checkinteger(L, 2);
const char *proto = lua_tostring(L, 3);
- ptrT value(Contact_GetInfo(CNF_FIRSTNAME, hContact, proto));
+ ptrT value(Contact_GetInfo(type, hContact, proto));
if (value)
lua_pushstring(L, ptrA(mir_utf8encodeT(value)));
else