From cd3cf7e97cf6bfdf8cc56364a008410dfeb95eba Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 2 Apr 2023 10:59:52 +0200 Subject: [PATCH] Chanmode +F: Lower nick change limit in profiles, now that only real nick changes are counted and not forced ones like SVSNICK. --- src/modules/chanmodes/floodprot.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/chanmodes/floodprot.c b/src/modules/chanmodes/floodprot.c index 768296584..dc965f9de 100644 --- a/src/modules/chanmodes/floodprot.c +++ b/src/modules/chanmodes/floodprot.c @@ -325,17 +325,17 @@ static void init_default_channel_flood_profiles(void) ChannelFloodProfile *f; f = safe_alloc(sizeof(ChannelFloodProfile)); - cmodef_put_param(&f->settings, "[10j#R10,30m#M10,7c#C15,10n#N15,10k#K15]:15"); + cmodef_put_param(&f->settings, "[10j#R10,30m#M10,7c#C15,5n#N15,10k#K15]:15"); safe_strdup(f->settings.profile, "very-strict"); AddListItem(f, channel_flood_profiles); f = safe_alloc(sizeof(ChannelFloodProfile)); - cmodef_put_param(&f->settings, "[15j#R10,40m#M10,7c#C15,10n#N15,10k#K15]:15"); + cmodef_put_param(&f->settings, "[15j#R10,40m#M10,7c#C15,8n#N15,10k#K15]:15"); safe_strdup(f->settings.profile, "strict"); AddListItem(f, channel_flood_profiles); f = safe_alloc(sizeof(ChannelFloodProfile)); - cmodef_put_param(&f->settings, "[30j#R10,40m#M10,7c#C15,10n#N15,10k#K15]:15"); + cmodef_put_param(&f->settings, "[30j#R10,40m#M10,7c#C15,8n#N15,10k#K15]:15"); safe_strdup(f->settings.profile, "normal"); AddListItem(f, channel_flood_profiles); @@ -1946,8 +1946,6 @@ int floodprot_server_quit(Client *client, MessageTag *mtags) return 0; } -// TODO: customizing of flood profiles (and adding new ones) in the config file - // TODO: if flood profiles change during REHASH (or otherwise) they are not re-applied to channels // TODO: handle mismatch of flood profiles between servers