diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 05:55:54 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 05:55:54 +0000 |
commit | 54963bee7003f65f5412ea52133b1a00c3b0763e (patch) | |
tree | d36a4fac2a323cf7be8a42312dc95fabb4924500 /src/helperfuncs.cpp | |
parent | 7db1335b25f6a6cc884368138df4d16a1cafd493 (diff) |
All new shiny config parser, there's probably some bugs there somewhere but hey...I've been up all night. make clean before you try and compile this. Really. And nobody dare complain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3817 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 073b5b37c..830e1ef2d 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -955,7 +955,7 @@ void WriteCommonExcept_NoFormat(userrec *u, const char* text) * uses the oper list, which means if you have 2000 users but only 5 opers, * it iterates 5 times. */ -void WriteOpers(char* text, ...) +void WriteOpers(const char* text, ...) { char textbuffer[MAXBUF]; va_list argsPtr; @@ -1852,9 +1852,9 @@ void LoadAllModules(InspIRCd* ServerInstance) Config->module_names.clear(); MODCOUNT = -1; - for (int count = 0; count < Config->ConfValueEnum("module",&Config->config_f); count++) + for (int count = 0; count < Config->ConfValueEnum(Config->config_data, "module"); count++) { - Config->ConfValue("module","name",count,configToken,&Config->config_f); + Config->ConfValue(Config->config_data, "module","name",count,configToken,MAXBUF); printf("[\033[1;32m*\033[0m] Loading module:\t\033[1;32m%s\033[0m\n",configToken); if (!ServerInstance->LoadModule(configToken)) @@ -1863,13 +1863,6 @@ void LoadAllModules(InspIRCd* ServerInstance) printf("\nThere was an error loading a module: %s\n\n",ServerInstance->ModuleError()); Exit(0); } - - if (!ServerInstance->LoadModule(configToken)) - { - log(DEFAULT,"Exiting due to a module loader error."); - printf("\nThere was an error loading a module: %s\n\n",ServerInstance->ModuleError()); - Exit(0); - } } log(DEFAULT,"Total loaded modules: %lu",(unsigned long)MODCOUNT+1); |