summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-04-01 17:30:38 +0000
committerRobert Pösel <robyer@seznam.cz>2014-04-01 17:30:38 +0000
commitefcd6b99eb4d3fec0bd4c6e3f7fe684b512e76d9 (patch)
tree1866faa09d5884fc81404680e60f44e2ebe490e8 /src/modules
parent1cab05afa07b7a27596c43f568a15b7b342a115e (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/modules')
-rw-r--r--src/modules/utils/path.cpp2
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);
}