summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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