1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 03:56:38 +02:00

Permit halfops to set more modes than before. The idea is halfops should be able to help out in case of a flood but not be able to change any 'policy decission' modes such as +G, +S, +c, +s.

The following modes are now permitted to halfops: +iklmntMKNCR (was: +ikmnt)
This commit is contained in:
Bram Matthys
2015-06-22 19:29:32 +02:00
parent 82d21bf2d9
commit efc63dff81
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ MODVAR char modebuf[BUFSIZE], parabuf[BUFSIZE];
#define MODESYS_LINKOK /* We do this for a TEST */
aCtab cFlagTab[] = {
{MODE_LIMIT, 'l', 0, 1},
{MODE_LIMIT, 'l', 1, 1},
{MODE_VOICE, 'v', 1, 1},
{MODE_HALFOP, 'h', 0, 1},
{MODE_CHANOP, 'o', 0, 1},
+1 -1
View File
@@ -68,7 +68,7 @@ CmodeInfo req;
memset(&req, 0, sizeof(req));
req.paracount = 0;
req.flag = 'C';
req.is_ok = extcmode_default_requirechop;
req.is_ok = extcmode_default_requirehalfop;
CmodeAdd(modinfo->handle, req, &EXTCMODE_NOCTCP);
HookAddPCharEx(modinfo->handle, HOOKTYPE_PRE_CHANMSG, noctcp_prechanmsg);
+1 -1
View File
@@ -122,6 +122,6 @@ DLLFUNC int noknock_mode_allow(aClient *cptr, aChannel *chptr, char mode, char *
return EX_DENY;
}
return extcmode_default_requirechop(cptr,chptr,mode,para,checkt,what);
return extcmode_default_requirehalfop(cptr,chptr,mode,para,checkt,what);
}
+1 -1
View File
@@ -67,7 +67,7 @@ CmodeInfo req;
memset(&req, 0, sizeof(req));
req.paracount = 0;
req.flag = 'N';
req.is_ok = extcmode_default_requirechop;
req.is_ok = extcmode_default_requirehalfop;
CmodeAdd(modinfo->handle, req, &EXTCMODE_NONICKCHANGE);
HookAddEx(modinfo->handle, HOOKTYPE_CHAN_PERMIT_NICK_CHANGE, nonickchange_check);
+1 -1
View File
@@ -68,7 +68,7 @@ CmodeInfo req;
memset(&req, 0, sizeof(req));
req.paracount = 0;
req.flag = 'R';
req.is_ok = extcmode_default_requirechop;
req.is_ok = extcmode_default_requirehalfop;
CmodeAdd(modinfo->handle, req, &EXTCMODE_REGONLY);
HookAddEx(modinfo->handle, HOOKTYPE_CAN_JOIN, regonly_check);
+1 -1
View File
@@ -69,7 +69,7 @@ DLLFUNC int MOD_INIT(regonlyspeak)(ModuleInfo *modinfo)
memset(&req, 0, sizeof(req));
req.paracount = 0;
req.flag = 'M';
req.is_ok = extcmode_default_requirechop;
req.is_ok = extcmode_default_requirehalfop;
CmodeAdd(modinfo->handle, req, &EXTCMODE_REGONLYSPEAK);
HookAddEx(modinfo->handle, HOOKTYPE_CAN_SEND, regonlyspeak_can_send);