diff options
Diffstat (limited to 'src/core/cs_set.c')
-rw-r--r-- | src/core/cs_set.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/cs_set.c b/src/core/cs_set.c index f82a74c78..d716019ce 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -37,7 +37,6 @@ static int do_set_opnotice(User * u, ChannelInfo * ci, char *param); static int do_set_xop(User * u, ChannelInfo * ci, char *param); static int do_set_peace(User * u, ChannelInfo * ci, char *param); static int do_set_noexpire(User * u, ChannelInfo * ci, char *param); -static int reload_config(int argc, char **argv); static void myChanServHelp(User * u); /** @@ -49,7 +48,6 @@ static void myChanServHelp(User * u); int AnopeInit(int argc, char **argv) { Command *c; - EvtHook *hook; moduleAddAuthor("Anope"); moduleAddVersion(VERSION_STRING); @@ -127,12 +125,6 @@ int AnopeInit(int argc, char **argv) moduleSetChanHelp(myChanServHelp); - hook = createEventHook(EVENT_RELOAD, reload_config); - if (moduleAddEventHook(hook) != MOD_ERR_OK) { - alog("[\002cs_set\002] Can't hook to EVENT_RELOAD event"); - return MOD_STOP; - } - return MOD_CONT; } @@ -907,17 +899,3 @@ static int do_set_noexpire(User * u, ChannelInfo * ci, char *param) return MOD_CONT; } -/*************************************************************************/ - -/** - * Upon /os reload refresh the limit in help output - **/ -static int reload_config(int argc, char **argv) { - Command *c; - - if (argc >= 1 && !stricmp(argv[0], EVENT_START)) - if ((c = findCommand(CHANSERV, "SET SUCCESSOR"))) - c->help_param1 = (char *) (long) CSMaxReg; - - return MOD_CONT; -} |