diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-19 17:25:49 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-19 17:25:49 +0000 |
commit | 2f09c0dca9dd1e8741e2de040de1359594b9151e (patch) | |
tree | a0657738c30abf5afaaea9c48f30930b2e7446d3 /src | |
parent | f1cc720514bdd3af20ba5feb6598ebb03a7a286f (diff) |
- Moved configuration related code from ircd.c to conf.c
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2873 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.c | 5 | ||||
-rw-r--r-- | src/ircd.c | 13 |
2 files changed, 8 insertions, 10 deletions
@@ -55,7 +55,12 @@ #include "conf_class.h" #include "motd.h" + struct config_server_hide ConfigServerHide; +struct config_file_entry ConfigFileEntry; +struct logging_entry ConfigLoggingEntry = { .use_logging = 1 }; +struct server_info ServerInfo; +struct admin_info AdminInfo; /* general conf items link list root, other than k lines etc. */ dlink_list service_items = { NULL, NULL, 0 }; @@ -65,18 +65,11 @@ #ifdef HAVE_LIBGEOIP GeoIP *geoip_ctx; #endif + /* /quote set variables */ struct SetOptions GlobalSetOptions; - -/* configuration set from ircd.conf */ -struct config_file_entry ConfigFileEntry; -/* server info set from ircd.conf */ -struct server_info ServerInfo; -/* admin info set from ircd.conf */ -struct admin_info AdminInfo = { NULL, NULL, NULL }; -struct Counter Count = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; -struct ServerState_t server_state = { 0 }; -struct logging_entry ConfigLoggingEntry = { .use_logging = 1 }; +struct Counter Count; +struct ServerState_t server_state; struct ServerStatistics ServerStats; struct timeval SystemTime; struct Client me; /* That's me */ |