From c44d4835faed14e31a1e531537c30398ce9e7e0c Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 20 May 2016 09:13:43 +0000 Subject: MirLua: fixed GetContactInfo function git-svn-id: http://svn.miranda-ng.org/main/trunk@16856 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MirLua/src') 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 -- cgit v1.2.3