summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/popwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TipperYM/popwin.cpp')
-rw-r--r--plugins/TipperYM/popwin.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/TipperYM/popwin.cpp b/plugins/TipperYM/popwin.cpp
index 38acd9e6b6..c9f6d82464 100644
--- a/plugins/TipperYM/popwin.cpp
+++ b/plugins/TipperYM/popwin.cpp
@@ -124,6 +124,14 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
AddRow(pwd, TranslateT("Log on:"), swzLogon, NULL, false, false, false);
}
+ // logoff info
+ TCHAR swzLogoff[64];
+ if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", swzLogoff, 59))
+ {
+ _tcscat(swzLogoff, TranslateT(" ago"));
+ AddRow(pwd, TranslateT("Log off:"), swzLogoff, NULL, false, false, false);
+ }
+
// number of unread emails
TCHAR swzEmailCount[64];
if (ProtoServiceExists(pwd->clcit.szProto, "/GetUnreadEmailCount"))
@@ -1800,6 +1808,12 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
_tcscat(buff, TranslateT(" ago"));
AddRow(pwd, TranslateT("Log on:"), buff, NULL, false, false, false);
}
+
+ if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", buff, 59))
+ {
+ _tcscat(buff, TranslateT(" ago"));
+ AddRow(pwd, TranslateT("Log off:"), buff, NULL, false, false, false);
+ }
}
if (dwItems & TRAYTIP_UNREAD_EMAILS && ProtoServiceExists(pa->szModuleName, "/GetUnreadEmailCount"))