1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 05:33:12 +02:00

CSMaxReg cant be reloaded, so this is unnecessary

This commit is contained in:
Adam
2013-07-25 20:03:06 -04:00
parent 1a3f890613
commit def6a6deee
2 changed files with 1 additions and 23 deletions
-22
View File
@@ -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;
}
+1 -1
View File
@@ -8,7 +8,7 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="9"
VERSION_EXTRA="-git"
VERSION_BUILD="3120"
VERSION_BUILD="3121"
# Changes since 1.8.8 Release
#Revision 3120 - Fix many memory leaks and valgrind warnings, see pull request #15