diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-03 11:23:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-03 11:23:33 +0000 |
commit | 9e1a2beaf1db681e6f0108d62f30e86a76bb6e9f (patch) | |
tree | 42521c10e2b37637545f883179928d294938c691 /plugins/TabSRMM/src/srmm.cpp | |
parent | 67585ba8617748c8df280ee6bb69214079017554 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5562 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/srmm.cpp')
-rw-r--r-- | plugins/TabSRMM/src/srmm.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp index b1b87cce68..888c21dc6c 100644 --- a/plugins/TabSRMM/src/srmm.cpp +++ b/plugins/TabSRMM/src/srmm.cpp @@ -39,8 +39,9 @@ LOGFONT lfDefault = {0}; * miranda interfaces
*/
-int hLangpack;
+int hLangpack;
TIME_API tmi = {0};
+CLIST_INTERFACE *pcli;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
@@ -76,6 +77,7 @@ extern "C" int __declspec(dllexport) Load(void) return 1;
}
+ mir_getCLI();
mir_getTMI(&tmi);
mir_getLP(&pluginInfo);
@@ -200,10 +202,11 @@ int _DebugPopup(HANDLE hContact, const TCHAR *fmt, ...) if (ServiceExists(MS_CLIST_SYSTRAY_NOTIFY)) {
MIRANDASYSTRAYNOTIFY tn;
TCHAR szTitle[128];
+ mir_sntprintf(szTitle, SIZEOF(szTitle), TranslateT("tabSRMM Message (%s)"),
+ (hContact != 0) ? pcli->pfnGetContactDisplayName(hContact, 0) : TranslateT("Global"));
tn.szProto = NULL;
tn.cbSize = sizeof(tn);
- mir_sntprintf(szTitle, SIZEOF(szTitle), TranslateT("tabSRMM Message (%s)"), (hContact != 0) ? (TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR) : TranslateT("Global"));
tn.tszInfoTitle = szTitle;
tn.tszInfo = debug;
tn.dwInfoFlags = NIIF_INFO;
|