diff options
author | George Hazan <george.hazan@gmail.com> | 2024-07-17 13:11:49 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-07-17 13:11:49 +0300 |
commit | 5fdd629c6420a1ce0751291e348b3eee9c6db15e (patch) | |
tree | c5b217cf17187564bffdf390d0d0c7503f578ec4 /protocols/Dummy/src/main.cpp | |
parent | b54524918f547089772bb0c30db5f8510ed2a426 (diff) |
fixes #4543 (Dummy: групчаты глючат)
Diffstat (limited to 'protocols/Dummy/src/main.cpp')
-rw-r--r-- | protocols/Dummy/src/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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;
}
|