summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 23:43:51 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 23:43:51 +0000
commit9d37cf1d5afeaa054f31e0df85275521410bde61 (patch)
tree6723415d5561a2d7c404e6e1233047f3a9de5f98 /src/modules
parent458be36a321615c0f3004a6abde7e14d40f5da32 (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/cs_appendtopic.c4
-rw-r--r--src/modules/cs_enforce.c4
-rw-r--r--src/modules/cs_tban.c4
-rw-r--r--src/modules/hs_request.c4
-rw-r--r--src/modules/os_info.c7
5 files changed, 17 insertions, 6 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c
index c67b68b4e..d5b32fe2a 100644
--- a/src/modules/cs_appendtopic.c
+++ b/src/modules/cs_appendtopic.c
@@ -222,8 +222,10 @@ class CSAppendTopic : public Module
this->InsertLanguage(LANG_PT, LNG_NUM_STRINGS, langtable_pt);
this->InsertLanguage(LANG_RU, LNG_NUM_STRINGS, langtable_ru);
this->InsertLanguage(LANG_IT, LNG_NUM_STRINGS, langtable_it);
+
+ ModuleManager::Attach(I_OnChanServHelp, this);
}
- void ChanServHelp(User *u)
+ void OnChanServHelp(User *u)
{
this->NoticeLang(s_ChanServ, u, LNG_CHAN_HELP);
}
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c
index 47b90db45..47fdedc07 100644
--- a/src/modules/cs_enforce.c
+++ b/src/modules/cs_enforce.c
@@ -470,8 +470,10 @@ class CSEnforce : public Module
this->InsertLanguage(LANG_PT, LNG_NUM_STRINGS, langtable_pt);
this->InsertLanguage(LANG_RU, LNG_NUM_STRINGS, langtable_ru);
this->InsertLanguage(LANG_IT, LNG_NUM_STRINGS, langtable_it);
+
+ ModuleManager::Attach(I_OnChanServHelp, this);
}
- void ChanServHelp(User *u)
+ void OnChanServHelp(User *u)
{
this->NoticeLang(s_ChanServ, u, LNG_CHAN_HELP);
}
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c
index e0ab66db4..9f8f2a2db 100644
--- a/src/modules/cs_tban.c
+++ b/src/modules/cs_tban.c
@@ -154,8 +154,10 @@ class CSTBan : 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);
+
+ ModuleManager::Attach(I_OnChanServHelp, this);
}
- void ChanServHelp(User *u)
+ void OnChanServHelp(User *u)
{
this->NoticeLang(s_ChanServ, u, TBAN_HELP);
}
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 779629521..0466f95fe 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -678,6 +678,8 @@ class HSRequest : public Module
this->InsertLanguage(LANG_PT, LNG_NUM_STRINGS, langtable_pt);
this->InsertLanguage(LANG_RU, LNG_NUM_STRINGS, langtable_ru);
this->InsertLanguage(LANG_IT, LNG_NUM_STRINGS, langtable_it);
+
+ ModuleManager::Attach(I_OnHostServHelp, this);
}
~HSRequest()
@@ -765,7 +767,7 @@ class HSRequest : public Module
ModuleDatabaseBackup(HSREQ_DEFAULT_DBNAME);
}
- void HostServHelp(User *u)
+ void OnHostServHelp(User *u)
{
this->NoticeLang(s_HostServ, u, LNG_HELP);
this->NoticeLang(s_HostServ, u, LNG_HELP_SETTER);
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);
}