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:
+1
-1
@@ -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},
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user