From 255b8133ea30d765428eb8188d75db91558bcd27 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Nov 2023 19:04:55 +0300 Subject: NewStory control messages made public --- protocols/ICQ-WIM/src/menus.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/ICQ-WIM/src/menus.cpp b/protocols/ICQ-WIM/src/menus.cpp index 591089e24a..58a118bf36 100644 --- a/protocols/ICQ-WIM/src/menus.cpp +++ b/protocols/ICQ-WIM/src/menus.cpp @@ -21,11 +21,10 @@ along with this program. If not, see . void CIcqProto::InitMenus() { - if (!ServiceExists(MS_NEWSTORY_GETSELECTION)) + if (!HookProtoEvent(ME_NS_PREBUILDMENU, &CIcqProto::OnPrebuildMenu)) return; CreateProtoService(MenuExecService, &CIcqProto::SvcExecMenu); - HookProtoEvent(ME_NS_PREBUILDMENU, &CIcqProto::OnPrebuildMenu); CMStringA szServiceName(FORMAT, "%s%s", m_szModuleName, MenuExecService); CMenuItem mi(&g_plugin); -- cgit v1.2.3