From: pk910 Date: Fri, 1 Jul 2011 22:29:52 +0000 (+0200) Subject: changed +f limits (to reduce memory usage) X-Git-Tag: WGN5~31 X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=677a95832a75c65f39207bb92fce9ed42abf21d6;hp=2428eebc52e3df5fc012320ef83754234d0ff568 changed +f limits (to reduce memory usage) --- 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)