summaryrefslogtreecommitdiff
path: root/tipper/popwin.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-03-19 00:33:29 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-03-19 00:33:29 +0000
commit7083e5ea0d86de180a3233c0ce5ec17011fe3598 (patch)
treefb4c5cb2a4927c2cb48a32deac8dcdbeb5270cdc /tipper/popwin.cpp
parente2926efe749018b24db79a51cdd2e71226768dee (diff)
implemented new GUID/interface API
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@126 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r--tipper/popwin.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp
index fadbfe3..ccac277 100644
--- a/tipper/popwin.cpp
+++ b/tipper/popwin.cpp
@@ -97,9 +97,19 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
}
if(status >= ID_STATUS_OFFLINE && status <= ID_STATUS_IDLE) {
- char *status_msg = (char *)CallService(MS_AWAYMSG_GETSTATUSMSG, status, 0);
- if(status_msg) {
- TCHAR *swzText = a2t(status_msg);
+ TCHAR *swzText = 0;
+ char *status_msg = 0;
+ if(ServiceExists(MS_AWAY_GETPROTOSTATUSMESSAGET))
+ swzText = _tcsdup((TCHAR *)CallService(MS_AWAY_GETPROTOSTATUSMESSAGET, (LPARAM)status, (WPARAM)pwd->clcit.proto));
+ else if(ServiceExists(MS_AWAY_GETPROTOSTATUSMESSAGE))
+ status_msg = (char *)CallService(MS_AWAY_GETPROTOSTATUSMESSAGE, (LPARAM)status, (WPARAM)pwd->clcit.proto);
+ else
+ status_msg = (char *)CallService(MS_AWAYMSG_GETSTATUSMSG, status, 0);
+
+ if(status_msg)
+ swzText = a2t(status_msg);
+
+ if(swzText) {
StripBBCodesInPlace(swzText);
pwd->rows = (RowData *) realloc(pwd->rows, sizeof(RowData) * (pwd->row_count + 1));