From 54963bee7003f65f5412ea52133b1a00c3b0763e Mon Sep 17 00:00:00 2001 From: om Date: Tue, 4 Apr 2006 05:55:54 +0000 Subject: 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 --- src/helperfuncs.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/helperfuncs.cpp') 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); -- cgit v1.2.3