summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/main.cpp')
-rw-r--r--plugins/NewStory/src/main.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp
index a480feebd7..d86fce7cfb 100644
--- a/plugins/NewStory/src/main.cpp
+++ b/plugins/NewStory/src/main.cpp
@@ -77,24 +77,9 @@ static int evtModulesLoaded(WPARAM, LPARAM)
InitFonts();
InitNewstoryControl();
InitHistory();
+ InitMenus();
LoadTemplates();
-
- CMenuItem mi(&g_plugin);
-
- SET_UID(mi, 0xc20d7a69, 0x7607, 0x4aad, 0xa7, 0x42, 0x10, 0x86, 0xfb, 0x32, 0x49, 0x21);
- mi.pszService = MS_HISTORY_SHOWCONTACTHISTORY;
- mi.name.a = LPGEN("User history");
- mi.position = 1999990000;
- mi.hIcon = g_plugin.getIcon(ICO_NEWSTORY);
- Menu_AddContactMenuItem(&mi);
-
- SET_UID(mi, 0xc20d7a69, 0x7607, 0x4aad, 0xa7, 0x42, 0x10, 0x86, 0xfb, 0x32, 0x49, 0x22);
- mi.pszService = "Newstory/System";
- mi.name.a = LPGEN("System history");
- mi.position = 1999990000;
- mi.hIcon = g_plugin.getIcon(ICO_NEWSTORY);
- Menu_AddMainMenuItem(&mi);
return 0;
}
@@ -113,9 +98,6 @@ int CMPlugin::Load()
m_log = RegisterSrmmLog(MODULETITLE, _T(MODULENAME), NewStory_Stub);
- CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, svcShowNewstory);
- CreateServiceFunction("Newstory/System", svcShowSystemNewstory);
-
HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
HookEvent(ME_SYSTEM_MODULESLOADED, evtModulesLoaded);
HookEvent(ME_SYSTEM_PRESHUTDOWN, evtPreShutdown);
@@ -129,4 +111,4 @@ int CMPlugin::Unload()
DestroyFonts();
return 0;
-} \ No newline at end of file
+}