From 3c9bb62a51cfcbd9a4a7dcf6a8e29657c6ee1ad2 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sat, 18 Sep 2010 22:18:27 +0000 Subject: 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 --- tipper/subst.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tipper/subst.cpp') 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); -- cgit v1.2.3