summaryrefslogtreecommitdiff
path: root/tipper/subst.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-09-18 22:18:27 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-09-18 22:18:27 +0000
commit3c9bb62a51cfcbd9a4a7dcf6a8e29657c6ee1ad2 (patch)
tree6d9bf0b4ceb2cf06b8c2a037485277253cbcb7a0 /tipper/subst.cpp
parent89c31c8a1ea2d6d0ab609e47768fc8ab5cff1f0d (diff)
Added ability to display contact time in tooltips
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@535 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/subst.cpp')
-rw-r--r--tipper/subst.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tipper/subst.cpp b/tipper/subst.cpp
index 2980c5c..cd10998 100644
--- a/tipper/subst.cpp
+++ b/tipper/subst.cpp
@@ -204,6 +204,9 @@ bool GetSysSubstText(HANDLE hContact, TCHAR *raw_spec, TCHAR *buff, int bufflen)
_tcsncpy(buff, pa->tszAccountName, bufflen);
return true;
}
+ } else if (!_tcscmp(raw_spec, _T("time"))) {
+ if (tmi.printDateTime && !tmi.printDateTimeByContact(hContact, _T("t"), buff, bufflen, TZF_KNOWNONLY))
+ return true;
} else if (!_tcscmp(raw_spec, _T("uidname"))) {
char *szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
return uid_name(szProto, buff, bufflen);