diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-14 00:16:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-14 00:16:27 +0300 |
commit | ba688c1ade0ac44a02294dda3e486469820bb31a (patch) | |
tree | 98bb3ca065f4b5cbe8a0446a5e7c9b6d36ecf320 /plugins/AutoShutdown/src | |
parent | dd2dd9a224ea7501a99e0ae4995d8f4b8ed3b5c7 (diff) |
Weather -> g_plugin
Diffstat (limited to 'plugins/AutoShutdown/src')
-rw-r--r-- | plugins/AutoShutdown/src/watcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/AutoShutdown/src/watcher.cpp b/plugins/AutoShutdown/src/watcher.cpp index 3973b251f9..fe08ea17a2 100644 --- a/plugins/AutoShutdown/src/watcher.cpp +++ b/plugins/AutoShutdown/src/watcher.cpp @@ -235,7 +235,7 @@ static BOOL CALLBACK CpuUsageWatcherProc(BYTE nCpuUsage, LPARAM lParam) static int WeatherUpdated(WPARAM wParam, LPARAM lParam)
{
char *pszProto = GetContactProto(wParam);
- if ((BOOL)lParam && pszProto != nullptr && Proto_GetStatus(pszProto) == THUNDER)
+ if ((BOOL)lParam && pszProto != nullptr && Proto_GetStatus(pszProto) == ID_STATUS_INVISIBLE)
if (g_plugin.getByte("WeatherShutdown", SETTING_WEATHERSHUTDOWN_DEFAULT))
ServiceShutdown(SDSDT_SHUTDOWN, TRUE);
return 0;
|