X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/2f61d1d75ac52f239e760ecea02332eedc4682bd..bc06f607a61a8d0c48642bc859998f34346024b8:/src/main.c diff --git a/src/main.c b/src/main.c index e272957..6b80504 100644 --- a/src/main.c +++ b/src/main.c @@ -1,9 +1,9 @@ -/* main.c - srvx +/* main.c - X3 * Copyright 2000-2004 srvx Development Team * * This file is part of x3. * - * srvx is free software; you can redistribute it and/or modify + * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. @@ -26,6 +26,7 @@ #include "modcmd.h" #include "saxdb.h" #include "sendmail.h" +#include "spamserv.h" #include "shun.h" #include "timeq.h" @@ -521,21 +522,6 @@ conf_globals(void) const char *info; dict_t dict; - info = conf_get_data("services/global/nick", RECDB_QSTRING); - if (info && (info[0] == '.')) - info = NULL; - init_global(info); - - info = conf_get_data("services/nickserv/nick", RECDB_QSTRING); - if (info && (info[0] == '.')) - info = NULL; - init_nickserv(info); - - info = conf_get_data("services/chanserv/nick", RECDB_QSTRING); - if (info && (info[0] == '.')) - info = NULL; - init_chanserv(info); - god_policer_params = policer_params_new(); if ((dict = conf_get_data("policers/commands-god", RECDB_OBJECT))) { dict_foreach(dict, set_policer_param, god_policer_params); @@ -562,6 +548,26 @@ conf_globals(void) if (info && (info[0] == '.')) info = NULL; init_opserv(info); + + info = conf_get_data("services/global/nick", RECDB_QSTRING); + if (info && (info[0] == '.')) + info = NULL; + init_global(info); + + info = conf_get_data("services/nickserv/nick", RECDB_QSTRING); + if (info && (info[0] == '.')) + info = NULL; + init_nickserv(info); + + info = conf_get_data("services/chanserv/nick", RECDB_QSTRING); + if (info && (info[0] == '.')) + info = NULL; + init_chanserv(info); + + info = conf_get_data("services/spamserv/nick", RECDB_QSTRING); + if (info && (info[0] == '.')) + info = NULL; + init_spamserv(info); } #ifdef HAVE_SYS_RESOURCE_H