This commit is contained in:
joonicks 2025-11-16 14:41:21 +01:00
parent 8c51f9d63e
commit 3eb9ec6f45

View File

@ -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;