diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-04-01 17:30:38 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-04-01 17:30:38 +0000 |
commit | efcd6b99eb4d3fec0bd4c6e3f7fe684b512e76d9 (patch) | |
tree | 1866faa09d5884fc81404680e60f44e2ebe490e8 /src | |
parent | 1cab05afa07b7a27596c43f568a15b7b342a115e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/utils/path.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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);
}
|