-/* main.c - NeonServ v5.4
+/* main.c - NeonServ v5.5
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
#include "version.h"
#include "modules.h"
#include "module_commands.h"
+#include "ModuleFunctions.h"
time_t start_time;
static int running, hard_restart;
fprintf(stderr, "Unable to load " CONF_FILE "\n");
exit(0);
}
+ event_reload(1);
#if HAVE_THREADS
THREAD_MUTEX_INIT(log_sync);
#endif
register_module_commands();
init_handleinfohandler();
init_tools();
+ init_modulefunctions();
loadModules();
init_bots();
init_DBHelper();
void reload_config() {
loadConfig(CONF_FILE);
+ event_reload(0);
}
static int getCurrentSecondsOfDay() {