From db5c7e723654238d6a7b8db3762390647ec9688c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Jul 2014 20:58:57 +0000 Subject: %userid% expansion for metas git-svn-id: http://svn.miranda-ng.org/main/trunk@9801 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/contacts.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules/clist') diff --git a/src/modules/clist/contacts.cpp b/src/modules/clist/contacts.cpp index 597a217199..b07aa7e921 100644 --- a/src/modules/clist/contacts.cpp +++ b/src/modules/clist/contacts.cpp @@ -205,6 +205,14 @@ static INT_PTR GetContactInfo(WPARAM, LPARAM lParam) { case CNF_UNIQUEID: { + if (db_mc_isMeta(ci->hContact)) { + TCHAR buf[40]; + _itot(ci->hContact, buf, 10); + ci->pszVal = mir_tstrdup(buf); + ci->type = CNFT_ASCIIZ; + return 0; + } + char *uid = (char*)CallProtoService(ci->szProto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0); if ((INT_PTR)uid != CALLSERVICE_NOTFOUND && uid) if (!ProcessDatabaseValueDefault(ci, uid)) -- cgit v1.2.3