summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/menus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/menus.cpp')
-rw-r--r--protocols/ICQ-WIM/src/menus.cpp3
1 files changed, 1 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>.
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);