From 1a0dc87d73d7a71028ac335be0d67433f410bab1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 2 Aug 2022 22:31:54 +0300 Subject: code to prevent UserInfo hooks from being destroyed --- src/mir_app/src/miranda.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/miranda.cpp b/src/mir_app/src/miranda.cpp index 4f6e7b1beb..7628da2e66 100644 --- a/src/mir_app/src/miranda.cpp +++ b/src/mir_app/src/miranda.cpp @@ -336,5 +336,8 @@ int LoadSystemModule(void) hModulesLoadedEvent = CreateHookableEvent(ME_SYSTEM_MODULESLOADED); hOkToExitEvent = CreateHookableEvent(ME_SYSTEM_OKTOEXIT); hOptionsInitEvent = CreateHookableEvent(ME_OPT_INITIALISE); + + // this event is created inside the core not to lose its hooks when MIID_UIUSERINFO plugin reloads + CreateHookableEvent(ME_USERINFO_INITIALISE); return 0; } -- cgit v1.2.3