X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fbot_NeonServ.c;h=8433db8bec0cb679f550420532fa7352ff460df0;hb=78e040af3fcc36ab684611c0f98b4381ff420878;hp=4d377e4e2e5033e8604c4712e92cab495ab882b6;hpb=9f27add1dff4dfa36fb65d43805da1939fbe4a4b;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/bot_NeonServ.c b/src/modules/NeonServ.mod/bot_NeonServ.c index 4d377e4..8433db8 100644 --- a/src/modules/NeonServ.mod/bot_NeonServ.c +++ b/src/modules/NeonServ.mod/bot_NeonServ.c @@ -1,4 +1,4 @@ -/* bot_NeonServ.c - NeonServ v5.4 +/* bot_NeonServ.c - NeonServ v5.5 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -404,7 +404,6 @@ cmd_neonserv_calc.c //EVENTS #include "event_neonserv_join.c" #include "event_neonserv_part.c" -#include "event_neonserv_quit.c" #include "event_neonserv_kick.c" #include "event_neonserv_mode.c" #include "event_neonserv_ctcp.c" @@ -473,7 +472,7 @@ static void start_bots(int type) { client->flags |= (strcmp(row[6], "0") ? SOCKET_FLAG_PREFERRED : 0); client->flags |= (strcmp(row[8], "0") ? SOCKET_FLAG_USE_QUEUE : 0); client->flags |= (strcmp(row[9], "0") ? SOCKET_FLAG_SSL : 0); - client->flags |= SOCKET_FLAG_REQUEST_INVITE; + client->flags |= SOCKET_FLAG_REQUEST_INVITE | SOCKET_FLAG_REQUEST_OP; client->botid = BOTID; client->clientid = atoi(row[7]); connect_socket(client); @@ -510,7 +509,6 @@ void init_NeonServ(int type) { bind_bot_ready(neonserv_bot_ready, module_id); bind_join(neonserv_event_join, module_id); bind_part(neonserv_event_part, module_id); - bind_quit(neonserv_event_quit, module_id); bind_chanctcp(neonserv_event_chanctcp, module_id); bind_privctcp(general_event_privctcp, module_id); bind_channotice(neonserv_event_channotice, module_id);