This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

autolimit 1.02 problem

Old posts that have not been replied to for several years.
Locked
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

autolimit 1.02 problem

Post by Bytez »

Here's the settings for my autolimit102.tcl

# This is the base number to add to the total channel count for the new limit
set autolimit(base) 8

# This is the difference between the current limit and user count before
# a new limit is set.
set autolimit(diff) 5

# This is the timer, in minutes, between checks.
set autolimit(timer) 15


It ignores the autolimit(diff)5 setting. This script always keeps the difference between the current limit and the # of people in channel to 8. When it checks every 15 minutes, it always adds 8 to the current # of people in channel. Don't want that to happen, floods the channel.

Does the autolimit(diff) setting mean = or less than ?? Either way, it should not add 8 to the current number of people in channel if the different is more than 5. ie current # of people in channel is 12, 2 people join making it 14.. now when the limit checks.. it'll add 8 to 14 making the limit to 22.
Last edited by Bytez on Mon Aug 25, 2003 2:18 pm, edited 1 time in total.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Damn.. I thought are identical topics, guess I was wrog.. sorry for deleting the wrong one. Please do Edit and post again the question. Also, please do avoid pressing the Submit button more than once.
Once the game is over, the king and the pawn go back in the same box.
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

Post by Bytez »

*Edited* bump
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

Please read the explaination of the settings again.

"autolimit(diff)" is the difference between current limit and
the number of people in the channel before it will set a "new" limit.
(not the number to be added to the current user count)

You need to change "autolimit(base)" to get a different buffer between
the users and the new limit.
I once was an intelligent young man, now i am old and i can not remember who i was.
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

Post by Bytez »

I know the (base) line is the # to add to current # of people in channel but it always adds this number when the # of people in channel changes even if it's more than the difference set.
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

autolimit(base) =
number to add to users in channel to get "new" channel limit


set autolimit(diff) =
do NOT set new limit unless the difference is greater that this

change autolimit(base) to 5
and
change autolimit(diff) to 3

Note: you may have mulitpile timers running because of rehash ...
this could cause the limit to be set before the 15 minute cycle time
I once was an intelligent young man, now i am old and i can not remember who i was.
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

Post by Bytez »

I don't think I was clear in my initial post. The script IGNORES the autolimit(diff) line. Say ONE user joins after a new limit is set, and when the script checks if it needs to set a new limit, it will do it REGARDLESS. Here's another scenerio:

Current number of people in channel: 14
a new limit was just set: Current limit set on channel: 22 (since 8 is set as autolimit(base)

5 minutes later, a user joins the channel, which makes the current count to 15.. then 10 minutes later, the script checks to see if it a new limit needs to be set. It goes ahead and sets the new limit to 23 Shouldn't it set a new limit when the current number of people in the channel is 17 or more since the 22-5=17 ??
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Use ChanLimit by slennox, it works just fine. with no such problem :)
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

I agree with Sir_Fz,
I am using chanlimit.tcl v1.5 by slennox, it is great.

chanlimit1.5.tcl.gz
I once was an intelligent young man, now i am old and i can not remember who i was.
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

Post by Bytez »

Thanks for the suggestion, I installed chanlimit1.5 and it's working just right :D The grace period is like the difference right?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

yeah, for example:

grace 1
limit 5

then if channel is 10 and limit 15
when channel is 12 then limit becomes 17
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

Post by Bytez »

Sir_Fz wrote:yeah, for example:

grace 1
limit 5

then if channel is 10 and limit 15
when channel is 12 then limit becomes 17
shouldn't it be when channel is 16, limit becomes 21 since the difference must be 1 (15-14) in order for a new limit to be set ?
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

grace = do NOT set new limit unless the difference is greater that this
I once was an intelligent young man, now i am old and i can not remember who i was.
B
Bytez
Op
Posts: 168
Joined: Mon Aug 11, 2003 1:42 pm

Post by Bytez »

Dedan wrote:grace = do NOT set new limit unless the difference is greater that this
Should be less than instead of greater.
Locked