From 5fdd629c6420a1ce0751291e348b3eee9c6db15e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 17 Jul 2024 13:11:49 +0300 Subject: =?UTF-8?q?fixes=20#4543=20(Dummy:=20=D0=B3=D1=80=D1=83=D0=BF?= =?UTF-8?q?=D1=87=D0=B0=D1=82=D1=8B=20=D0=B3=D0=BB=D1=8E=D1=87=D0=B0=D1=82?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Dummy/src/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'protocols/Dummy/src/main.cpp') diff --git a/protocols/Dummy/src/main.cpp b/protocols/Dummy/src/main.cpp index 29a6cf6ef8..70100b0ce1 100644 --- a/protocols/Dummy/src/main.cpp +++ b/protocols/Dummy/src/main.cpp @@ -51,8 +51,20 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC ///////////////////////////////////////////////////////////////////////////////////////// // OnLoad - initialize the plugin instance +static int OnDummyDoubleClicked(WPARAM hContact, LPARAM) +{ + if (auto *pa = Proto_GetContactAccount(hContact)) + if (getDummyProtocolId(pa->szModuleName) != -1 && Contact::IsGroupChat(hContact)) { + CallService(MS_HISTORY_SHOWCONTACTHISTORY, hContact, 0); + return 1; + } + + return 0; +} + int CMPlugin::Load() { + HookEvent(ME_CLIST_DOUBLECLICKED, OnDummyDoubleClicked); return 0; } -- cgit v1.2.3