From cf42cf75d175807a724a267253d53f02d415d1db Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 13:15:21 +0000 Subject: Config fixes for moving MOTD and RULES vectors into the ServerConfig class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2403 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd_io.h | 1 + include/typedefs.h | 1 + src/inspircd.cpp | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/inspircd_io.h b/include/inspircd_io.h index d00009da5..e5447ecb3 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -20,6 +20,7 @@ #include #include #include "inspircd.h" +#include "globals.h" // flags for use with log() diff --git a/include/typedefs.h b/include/typedefs.h index 1cd48a24a..05cf9e8db 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -8,6 +8,7 @@ #include "ctables.h" #include "inspircd.h" #include "modules.h" +#include "globals.h" #include "inspircd_config.h" #include #ifdef GCC3 diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 2321aebf5..23ce90109 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -323,9 +323,9 @@ void ReadConfig(bool bail, userrec* user) if (!strcmp(dbg,"none")) Config->LogLevel = NONE; - readfile(MOTD,Config->motd); + readfile(Config->MOTD,Config->motd); log(DEFAULT,"Reading message of the day..."); - readfile(RULES,Config->rules); + readfile(Config->RULES,Config->rules); log(DEFAULT,"Reading connect classes..."); Classes.clear(); for (int i = 0; i < ConfValueEnum("connect",&Config->config_f); i++) -- cgit v1.2.3