From: pk910 Date: Mon, 24 Sep 2012 12:01:41 +0000 (+0200) Subject: added "all" argument to cmd_invitemeall to get invited to all channels (not only... X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=5dae7c36bf0c4b2a741856f6271b076238a180cc added "all" argument to cmd_invitemeall to get invited to all channels (not only channels with autoinvite enabled) --- diff --git a/src/modules/NeonServ.mod/cmd_neonserv_invitemeall.c b/src/modules/NeonServ.mod/cmd_neonserv_invitemeall.c index 9f5b56d..c7d3340 100644 --- a/src/modules/NeonServ.mod/cmd_neonserv_invitemeall.c +++ b/src/modules/NeonServ.mod/cmd_neonserv_invitemeall.c @@ -31,7 +31,7 @@ CMD_BIND(neonserv_cmd_invitemeall) { struct ClientSocket *bot; while((chanuserrow = mysql_fetch_row(res)) != NULL) { int userflags = atoi(chanuserrow[1]); - if(!(userflags & DB_CHANUSER_AUTOINVITE)) continue; + if(!(argc && !stricmp(argv[0], "all")) && !(userflags & DB_CHANUSER_AUTOINVITE)) continue; if(!(chan = getChanByName(chanuserrow[2]))) continue; //no bot is in the channel if((bchanuser = getChanUser(client->user, chan)) && (bchanuser->flags & CHANUSERFLAG_OPPED)) bot = client;