X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmain.c;h=d6258a7598e5fce77fdb7b4116f27c68a681d30b;hb=ffc462dec2b405f14d7b13d37e17b95ea6fdf2f5;hp=47de2620ac71a63571a354b65a89ff16daba0d80;hpb=9d2bbd34f22639745b23b7916ed3123c0dfed557;p=NeonServV5.git diff --git a/src/main.c b/src/main.c index 47de262..d6258a7 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,19 @@ +/* main.c - NeonServ v5.2 + * Copyright (C) 2011 Philipp Kreil (pk910) + * + * This program 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 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ #include "main.h" #include "ClientSocket.h" @@ -15,6 +31,9 @@ #include "timeq.h" #include "EventLogger.h" #include "ModeNode.h" +#include "IRCQueue.h" +#include "DBHelper.h" +#include "commands.h" #include "lib/ini.h" time_t start_time; @@ -93,6 +112,7 @@ int main(void) if(!load_mysql_config()) return 0; + queue_init(); init_lang(); init_parser(); init_UserNode(); @@ -102,7 +122,9 @@ int main(void) init_modcmd(); init_handleinfohandler(); init_tools(); + register_commands(); init_bots(); + init_DBHelper(); load_languages(); @@ -116,6 +138,7 @@ int main(void) loop_bots(); clearTempUsers(); destroyEvents(); + queue_loop(); } }