diff options
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r-- | tipper/popwin.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 7ff1cee..509d134 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -103,10 +103,16 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa TCHAR *temp = (TCHAR *)CallService(MS_AWAY_GETPROTOSTATUSMESSAGET, (LPARAM)status, (WPARAM)pwd->clcit.proto); swzText = _tcsdup(temp); mir_free(temp); - } else if(ServiceExists(MS_AWAY_GETPROTOSTATUSMESSAGE)) + } 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); + } else { + char svc[256]; + mir_snprintf(svc, 256, "%s%s", pwd->clcit.proto, PS_GETMYAWAYMSG); + if(ServiceExists(svc)) { + status_msg = (char *)CallService(svc, status, 0); + } else + status_msg = (char *)CallService(MS_AWAYMSG_GETSTATUSMSG, status, 0); + } if(status_msg) swzText = a2t(status_msg); |