From: pk910 Date: Sun, 17 Jul 2011 15:49:04 +0000 (+0200) Subject: allow opers with security override enabled using MODE_NOFLOOD with the ! flag on... X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=573c044e6589b21596f6370dfaa1a863d3179b43 allow opers with security override enabled using MODE_NOFLOOD with the ! flag on ChanServ modelock --- diff --git a/src/chanserv.c b/src/chanserv.c index a76992e..e1fc974 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -5674,7 +5674,7 @@ static MODCMD_FUNC(chan_opt_modes) { memset(&channel->channel_info->modes, 0, sizeof(channel->channel_info->modes)); } - else if(!(new_modes = mod_chanmode_parse(channel, argv+1, argc-1, MCP_KEY_FREE|MCP_IGN_REGISTERED|MCP_NO_APASS, 0))) + else if(!(new_modes = mod_chanmode_parse(channel, argv+1, argc-1, MCP_KEY_FREE|MCP_IGN_REGISTERED|MCP_NO_APASS|(IsOper(user) && IsHelping(user) ? MCP_OPERMODE : 0), 0))) { reply("CSMSG_INVALID_MODE_LOCK", unsplit_string(argv+1, argc-1, NULL)); return 0;