diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-06 20:06:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-06 20:06:44 +0300 |
commit | 09bce81d5eae2a46dd039e9fa14290c77685d637 (patch) | |
tree | 00d3a8332aff9d667d385eaaeb078de4edc441b4 /plugins/StatusManager/src/commonstatus.cpp | |
parent | 5a16d189158c71db28c481a44706c73c83fd6e76 (diff) |
fixes #1054 (StatusManager cannot enable/disable modules "on the fly")
Diffstat (limited to 'plugins/StatusManager/src/commonstatus.cpp')
-rw-r--r-- | plugins/StatusManager/src/commonstatus.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/plugins/StatusManager/src/commonstatus.cpp b/plugins/StatusManager/src/commonstatus.cpp index 146b69a96d..fe1860ecb3 100644 --- a/plugins/StatusManager/src/commonstatus.cpp +++ b/plugins/StatusManager/src/commonstatus.cpp @@ -30,8 +30,6 @@ OBJLIST<PROTOCOLSETTINGEX> *protoList; char* StatusModeToDbSetting(int status, const char *suffix); DWORD StatusModeToProtoFlag(int status); INT_PTR SetStatusEx(WPARAM wParam, LPARAM lParam); -int InitCommonStatus(); -int GetProtoCount(); // some helpers from awaymsg.c ================================================================ char *StatusModeToDbSetting(int status, const char *suffix) @@ -252,16 +250,6 @@ INT_PTR SetStatusEx(WPARAM wParam, LPARAM) static INT_PTR GetProtocolCountService(WPARAM, LPARAM) { - return GetProtoCount(); -} - -bool IsSuitableProto(PROTOACCOUNT *pa) -{ - return (pa == nullptr) ? false : (pcli->pfnGetProtocolVisibility(pa->szModuleName) != 0); -} - -int GetProtoCount() -{ int pCount = 0, count; PROTOACCOUNT **accs; Proto_EnumAccounts(&count, &accs); @@ -273,6 +261,11 @@ int GetProtoCount() return pCount; } +bool IsSuitableProto(PROTOACCOUNT *pa) +{ + return (pa == nullptr) ? false : (pcli->pfnGetProtocolVisibility(pa->szModuleName) != 0); +} + static int CreateServices() { if (ServiceExists(MS_CS_SETSTATUSEX)) @@ -287,6 +280,7 @@ static int CreateServices() static int onShutdown(WPARAM, LPARAM) { + g_bMirandaLoaded = false; DestroyHookableEvent(hCSStatusChangedExEvent); return 0; } |