projects
/
ircu2.10.12-pk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2428eeb
)
changed +f limits (to reduce memory usage)
author
pk910
<philipp@zoelle1.de>
Fri, 1 Jul 2011 22:29:52 +0000
(
00:29
+0200)
committer
pk910
<philipp@zoelle1.de>
Fri, 1 Jul 2011 22:58:37 +0000
(
00:58
+0200)
ircd/channel.c
patch
|
blob
|
history
diff --git
a/ircd/channel.c
b/ircd/channel.c
index d7630b1f598a1f61c17725c9ef95bb751b103643..fd48bde4b2af4422ff81423b2e86d42f40879f11 100644
(file)
--- a/
ircd/channel.c
+++ b/
ircd/channel.c
@@
-2671,7
+2671,7
@@
mode_parse_noflood(struct ParseState *state, ulong64 *flag_p)
break;
}
}
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))
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));
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)
floodnode->time = CurrentTime;
floodnode->next_memberflood = NULL;
if(floodcount > 0)