From 677a95832a75c65f39207bb92fce9ed42abf21d6 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 2 Jul 2011 00:29:52 +0200 Subject: [PATCH] changed +f limits (to reduce memory usage) --- ircd/channel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ircd/channel.c b/ircd/channel.c index d7630b1..fd48bde 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -2671,7 +2671,7 @@ mode_parse_noflood(struct ParseState *state, ulong64 *flag_p) break; } } - if(count <= 0 || time <= 0 || count > 999 || time > 9999) return; + if(count <= 0 || time <= 0 || count > 100 || time > 600) return; if (!(state->flags & MODE_PARSE_WIPEOUT) && (!t_str || t_str == state->chptr->mode.noflood)) @@ -4376,7 +4376,6 @@ int ext_noflood_block(struct Client *cptr, struct Channel *chptr) { free_MemberFlood = floodnode->next_memberflood; } else floodnode = (struct MemberFlood*) MyMalloc(sizeof(struct MemberFlood)); - memset(floodnode, 0, sizeof(struct MemberFlood)); floodnode->time = CurrentTime; floodnode->next_memberflood = NULL; if(floodcount > 0) -- 2.20.1