From 5dae7c36bf0c4b2a741856f6271b076238a180cc Mon Sep 17 00:00:00 2001 From: pk910 Date: Mon, 24 Sep 2012 14:01:41 +0200 Subject: [PATCH] added "all" argument to cmd_invitemeall to get invited to all channels (not only channels with autoinvite enabled) --- src/modules/NeonServ.mod/cmd_neonserv_invitemeall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1