From efcd6b99eb4d3fec0bd4c6e3f7fe684b512e76d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 1 Apr 2014 17:30:38 +0000 Subject: Add %accountname% core variable which contains user-defined name of account for a given contact git-svn-id: http://svn.miranda-ng.org/main/trunk@8815 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/utils/path.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/utils/path.cpp') diff --git a/src/modules/utils/path.cpp b/src/modules/utils/path.cpp index c67a297b8c..2d9dcf9c52 100644 --- a/src/modules/utils/path.cpp +++ b/src/modules/utils/path.cpp @@ -289,6 +289,8 @@ XCHAR *GetInternalVariable(XCHAR *key, size_t keyLength, MCONTACT hContact) theValue = GetContactNickX(key, hContact); else if (!_xcscmp(theKey, XSTR(key, "proto"))) theValue = mir_a2x(key, GetContactProto(hContact)); + else if (!_xcscmp(theKey, XSTR(key, "accountname"))) + theValue = mir_a2x(key, _T2A(ProtoGetAccount(GetContactProto(hContact))->tszAccountName)); else if (!_xcscmp(theKey, XSTR(key, "userid"))) theValue = GetContactIDX(key, hContact); } -- cgit v1.2.3