summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-21 18:17:12 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-21 18:17:12 +0300
commitee868b7339322e7222cb62741f397d97180c96cb (patch)
tree6e19aa7aaea69cd9e39e4896a29cc495514a4617 /protocols/VKontakte/src/main.cpp
parentf81db767c1caeb7749faa95e509c6c6d4b0c940d (diff)
VK: remote read support for NewStory
Diffstat (limited to 'protocols/VKontakte/src/main.cpp')
-rw-r--r--protocols/VKontakte/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/main.cpp b/protocols/VKontakte/src/main.cpp
index c00df3398d..036d1f5f21 100644
--- a/protocols/VKontakte/src/main.cpp
+++ b/protocols/VKontakte/src/main.cpp
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "version.h"
CMPlugin g_plugin;
-bool g_bMessageState;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -52,7 +51,8 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC
static int OnModuleLoaded(WPARAM, LPARAM)
{
- g_bMessageState = ServiceExists(MS_MESSAGESTATE_UPDATE) != 0;
+ g_plugin.hasNewStory = ServiceExists("NewStory/RemoteRead");
+ g_plugin.hasMessageState = ServiceExists(MS_MESSAGESTATE_UPDATE);
return 0;
}