#include "bandbi.h"
#include "operhash.h"
#include "chmode.h"
+#include "hook.h"
+#include "s_assert.h"
struct config_server_hide ConfigServerHide;
ConfigFileEntry.use_whois_actually = YES;
ConfigFileEntry.burst_away = NO;
ConfigFileEntry.collision_fnc = YES;
+ ConfigFileEntry.resv_fnc = YES;
ConfigFileEntry.global_snotices = YES;
ConfigFileEntry.operspy_dont_care_user_info = NO;
ConfigFileEntry.use_propagated_bans = YES;
+ ConfigFileEntry.max_ratelimit_tokens = 30;
+ ConfigFileEntry.away_interval = 30;
#ifdef HAVE_LIBZ
ConfigFileEntry.compression_level = 4;
ServerInfo.default_max_clients = MAXCONNECTIONS;
+ ConfigFileEntry.nicklen = NICKLEN;
+
if (!alias_dict)
alias_dict = irc_dictionary_create(strcasecmp);
}
dont know anything else
- Gozem 2002-07-21
+
+
*/
rb_strlcpy(conffilebuf, filename, sizeof(conffilebuf));
{
if(cold)
{
+ inotice("Failed in reading configuration file %s, aborting", filename);
ilog(L_MAIN, "Failed in reading configuration file %s", filename);
+
+ int e;
+ e = errno;
+
+ inotice("FATAL: %s %s", strerror(e), filename);
+ ilog(L_MAIN, "FATAL: %s %s", strerror(e), filename);
+
exit(-1);
}
else
clear_out_old_conf();
}
+ call_hook(h_conf_read_start, NULL);
read_conf(conf_fbfile_in);
+ call_hook(h_conf_read_end, NULL);
+
fclose(conf_fbfile_in);
}