Page 1 of 1

maxbans and chars per ban question

Posted: Sun Feb 05, 2006 11:27 pm
by ShArDiCk
Hi,

i've red unreal 3.2.4 docs for testing new ircd version. I've notice the calculation of medium lenght of characters in ban.

On docs, maxbans default is 60 (so? if i dont specifiy max bans in conf the default value for my ircd would be 60?)
Same for maxbanslenght: 2048 (default value, you write).

If, 60 and 2048 are defaults value, then 34 is a default value too (on u3.2.3?)?

2048 / 60 = 34

So... if i specifiy 60 max bans for my ircd, maxbanslenght would be 2048. but why 2048? Why 34?

34 is an indicative numers?

My specific question si: on Unreal3.2.3, maxbans limit is 60. And maxbansleght is 2048?
So, Unreal3.2.3 calcucate its maxbanslenght on 34?

So, if i have 160 of maxbans, if i specify 5440 for maxbansleght always thinking to 34, i risk anything?

Thanx in advance for reply :)

Posted: Mon Feb 06, 2006 2:31 am
by w00t
This is digging my memory a bit, but...

Maxbans is actually the number of bans you can have set on a channel. i.e.:

*!*@*
*!*@*.aol.com
*!*@*.bigpond.com.au

3 bans.

Maxbanlength is the number of characters total - so that 60 bans of insane length can't be set.

Together, these work to ensure that users can't manipulate your ircd and make it chew an insane amount of RAM.

Hope this answers your question.

Posted: Mon Feb 06, 2006 8:20 am
by ShArDiCk
:?: no...

you hadnt help me...

my doubt is always the same: that 34 is the right (or default) number for calculate maxbanslenght?