diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-09 18:56:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-09 18:56:03 +0300 |
commit | eec98453479bf86999060565ad90a63ff8f74942 (patch) | |
tree | c2dcb22ac74920b3cbcc96d2376dfcd77e9dcffc /plugins/StatusManager | |
parent | 09c39492686b504391db1bda59d3a3c246435534 (diff) |
MS_CLIST_SETSTATUSMODE => Clist_SetStatusMode()
dunno how I could miss it
Diffstat (limited to 'plugins/StatusManager')
-rw-r--r-- | plugins/StatusManager/src/KeepStatus/keepstatus.cpp | 2 | ||||
-rw-r--r-- | plugins/StatusManager/src/StartupStatus/startupstatus.cpp | 8 | ||||
-rw-r--r-- | plugins/StatusManager/src/commonstatus.cpp | 6 |
3 files changed, 4 insertions, 12 deletions
diff --git a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp index 01b63728a0..d518b47edc 100644 --- a/plugins/StatusManager/src/KeepStatus/keepstatus.cpp +++ b/plugins/StatusManager/src/KeepStatus/keepstatus.cpp @@ -1125,7 +1125,7 @@ static DWORD CALLBACK MessageWndProc(HWND, UINT msg, WPARAM wParam, LPARAM lPara EnableProtocolService(0, (LPARAM)ps[i]->szName); // set proto's offline, the clist will not try to reconnect in that case - CallService(MS_CLIST_SETSTATUSMODE, (WPARAM)ID_STATUS_OFFLINE, 0); + Clist_SetStatusMode(ID_STATUS_OFFLINE); } break; diff --git a/plugins/StatusManager/src/StartupStatus/startupstatus.cpp b/plugins/StatusManager/src/StartupStatus/startupstatus.cpp index 442c707f9d..f2614903f6 100644 --- a/plugins/StatusManager/src/StartupStatus/startupstatus.cpp +++ b/plugins/StatusManager/src/StartupStatus/startupstatus.cpp @@ -327,12 +327,8 @@ static int OnOkToExit(WPARAM, LPARAM) } } - if (db_get_b(NULL, SSMODULENAME, SETTING_SETPROFILE, 1) || db_get_b(NULL, SSMODULENAME, SETTING_OFFLINECLOSE, 0)) { - if (ServiceExists(MS_CLIST_SETSTATUSMODE)) - CallService(MS_CLIST_SETSTATUSMODE, ID_STATUS_OFFLINE, 0); - else - log_debugA("StartupStatus: MS_CLIST_SETSTATUSMODE not available!"); - } + if (db_get_b(NULL, SSMODULENAME, SETTING_SETPROFILE, 1) || db_get_b(NULL, SSMODULENAME, SETTING_OFFLINECLOSE, 0)) + Clist_SetStatusMode(ID_STATUS_OFFLINE); return 0; } diff --git a/plugins/StatusManager/src/commonstatus.cpp b/plugins/StatusManager/src/commonstatus.cpp index c016f4d3ba..bea099864e 100644 --- a/plugins/StatusManager/src/commonstatus.cpp +++ b/plugins/StatusManager/src/commonstatus.cpp @@ -246,12 +246,8 @@ INT_PTR SetStatusEx(WPARAM wParam, LPARAM) } if (globStatus != 0) { - if (!ServiceExists(MS_CLIST_SETSTATUSMODE)) { - log_debugA("CommonStatus: MS_CLIST_SETSTATUSMODE not available!"); - return -1; - } log_debugA("CommonStatus: setting global status %u", globStatus); - CallService(MS_CLIST_SETSTATUSMODE, globStatus, 0); + Clist_SetStatusMode(globStatus); } return 0; |