From 9d37cf1d5afeaa054f31e0df85275521410bde61 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 8 Nov 2009 23:43:51 +0000 Subject: Made the Module::ServHelp() functions part of the event system git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2637 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/os_info.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/modules/os_info.c') diff --git a/src/modules/os_info.c b/src/modules/os_info.c index 10bf6a557..6298a7744 100644 --- a/src/modules/os_info.c +++ b/src/modules/os_info.c @@ -447,6 +447,9 @@ class OSInfo : public Module this->InsertLanguage(LANG_PT, LANG_NUM_STRINGS, langtable_pt); this->InsertLanguage(LANG_RU, LANG_NUM_STRINGS, langtable_ru); this->InsertLanguage(LANG_IT, LANG_NUM_STRINGS, langtable_it); + + Implementation i[] = { I_OnNickServHelp, I_OnChanServHelp }; + ModuleManager::Attach(i, this, 2); } ~OSInfo() @@ -603,12 +606,12 @@ class OSInfo : public Module } } - void NickServHelp(User *u) + void OnNickServHelp(User *u) { this->NoticeLang(s_NickServ, u, OINFO_HELP_CMD); } - void ChanServHelp(User *u) + void OnChanServHelp(User *u) { this->NoticeLang(s_ChanServ, u, OCINFO_HELP_CMD); } -- cgit