X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fchannel.c;h=fd48bde4b2af4422ff81423b2e86d42f40879f11;hp=d7630b1f598a1f61c17725c9ef95bb751b103643;hb=677a95832a75c65f39207bb92fce9ed42abf21d6;hpb=2428eebc52e3df5fc012320ef83754234d0ff568 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)