summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-19 17:25:49 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-19 17:25:49 +0000
commit2f09c0dca9dd1e8741e2de040de1359594b9151e (patch)
treea0657738c30abf5afaaea9c48f30930b2e7446d3 /src
parentf1cc720514bdd3af20ba5feb6598ebb03a7a286f (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.c5
-rw-r--r--src/ircd.c13
2 files changed, 8 insertions, 10 deletions
diff --git a/src/conf.c b/src/conf.c
index 1f8acce..5e91a51 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -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 };
diff --git a/src/ircd.c b/src/ircd.c
index 2dd2ddf..1148821 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -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 */