summaryrefslogtreecommitdiff
path: root/src/modules/hs_request.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 21:25:56 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 21:25:56 +0000
commit578da38d30893ca33cc1aa9183e4b82d67c831f3 (patch)
treecd2bada4c31d277463d44a63a8257339dbbcad26 /src/modules/hs_request.c
parentfbb1ab92468cce3b4414a1232c4efc77d34e27c8 (diff)
Replace Set*Help() functions with virtual *ServHelp() functions that can be overriden in a module's Module class. Patch from Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2266 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/hs_request.c')
-rw-r--r--src/modules/hs_request.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 6902ef129..919f42b2d 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -53,8 +53,6 @@ char *HSRequestDBName = NULL;
#define LNG_WAITING_SYNTAX 19
#define LNG_HELP_WAITING 20
-void hs_help(User *u);
-
void my_add_host_request(char *nick, char *vIdent, char *vhost, char *creator, int32 tmp_time);
int my_isvalidchar(const char c);
void my_memo_lang(User *u, char *name, int z, int number, ...);
@@ -416,7 +414,6 @@ class HSRequest : public Module
ModuleManager::Attach(I_OnSaveDatabase, this);
ModuleManager::Attach(I_OnBackupDatabase, this);
- this->SetHostHelp(hs_help);
this->SetAuthor(AUTHOR);
this->SetVersion(VERSION);
this->SetType(SUPPORTED);
@@ -767,6 +764,12 @@ class HSRequest : public Module
else
ModuleDatabaseBackup(HSREQ_DEFAULT_DBNAME);
}
+
+ void HostServHelp(User *u)
+ {
+ this->NoticeLang(s_HostServ, u, LNG_HELP);
+ this->NoticeLang(s_HostServ, u, LNG_HELP_SETTER);
+ }
};
void my_memo_lang(User *u, char *name, int z, int number, ...)
@@ -871,12 +874,6 @@ int my_isvalidchar(const char c)
return 0;
}
-void hs_help(User * u)
-{
- me->NoticeLang(s_HostServ, u, LNG_HELP);
- me->NoticeLang(s_HostServ, u, LNG_HELP_SETTER);
-}
-
void hsreq_load_db()
{
FILE *fp;