[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Max Bans
On Mon, Apr 20, 1998 at 04:08:36AM +0200, Robert Martin-Legene wrote:
> Imagine user A ("UA") on server A ("SA"). SA has a max ban setting of
> "endless". User B ("UB") on server B ("SB") will get banned by UA, but SB
> can only have 21 bans and hence ignores the ban since it's list is now
> full.
servers have limit on bans originating from clients, not from other servers.
RTFS, Robert:
(channel.c, add_banid function)
[...]
if (MyClient(cptr) &&
((len > MAXBANLENGTH) || (++cnt >= MAXBANS) ||
!match(ban->value.cp, banid) ||
!match(banid, ban->value.cp)))
return -1;
[...]
> UB joins the channel. UA wonders and asks his SA (since he can't ask SB
> when he's using SA) for bans on the channel and get's a "full" list.
No way.
Piotr