summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-14 20:58:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-14 20:58:57 +0000
commitdb5c7e723654238d6a7b8db3762390647ec9688c (patch)
tree0c944c42fade0a954aeab3c5012f0a18e10d8b8b /src
parent0e6b7dfe24583e2023f668d7fbfcba3d495dd9be (diff)
%userid% expansion for metas
git-svn-id: http://svn.miranda-ng.org/main/trunk@9801 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/modules/clist/contacts.cpp8
1 files changed, 8 insertions, 0 deletions
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))