X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmain.c;h=74fd93c0261b95c2d029fc95a75b0075fcaa55d5;hp=0ca3d31ea190c1be70efb3f6eded83e96dfa43d9;hb=902ebfe5551be2daa3edf8141bcee91f62c0a5e0;hpb=8a990d2c87f8f8a6ca26dd2c6afef161dab2eb9e diff --git a/src/main.c b/src/main.c index 0ca3d31..74fd93c 100644 --- a/src/main.c +++ b/src/main.c @@ -34,11 +34,11 @@ #include "ModeNode.h" #include "IRCQueue.h" #include "DBHelper.h" -#include "commands.h" #include "ConfigParser.h" #include "ssl.h" #include "QServer.h" #include "version.h" +#include "modules.h" time_t start_time; static int running, hard_restart; @@ -282,7 +282,7 @@ main: init_modcmd(); init_handleinfohandler(); init_tools(); - + loadModules(); init_bots(); init_DBHelper(); qserver_init(); @@ -457,7 +457,7 @@ TIMEQ_CALLBACK(main_checkauths) { if ((row = mysql_fetch_row(res)) != NULL) { lastcheck = atoi(row[1]); if(!lastcheck || unixtime - lastcheck >= min_unckecked) { - lookup_authname(row[0], main_checkauths_callback, NULL); + lookup_authname(row[0], 0, main_checkauths_callback, NULL); } else next_call = 300; }