mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-17 07:26:21 +00:00
maxprot
This commit is contained in:
parent
8c51f9d63e
commit
3eb9ec6f45
@ -278,7 +278,6 @@ void update_modes(Chan *chan)
|
||||
*/
|
||||
int check_mass(Chan *chan, ChanUser *doer, int type)
|
||||
{
|
||||
time_t when;
|
||||
int num,limit;
|
||||
|
||||
/*
|
||||
@ -388,6 +387,9 @@ void prot_action(Chan *chan, char *from, ChanUser *doer, char *target, ChanUser
|
||||
uprot = get_protaction(chan,target);
|
||||
}
|
||||
|
||||
/* dont enforce protection levels higher than channel is set to */
|
||||
if (maxprot < uprot) uprot = maxprot;
|
||||
|
||||
if ((uprot >= 4) && (!(doer->flags & CU_BANNED)))
|
||||
{
|
||||
doer->flags |= CU_BANNED|CU_DEOPPED;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user