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.

Question about Limit.tcl

Old posts that have not been replied to for several years.
Locked
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Question about Limit.tcl

Post by Sir_Fz »

If i set:
set cl_timer 0.5

will the eggdrop check for limit every 30 seconds ? or it won't work ?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Use 'utimer' for seconds. timer/utimer only accept integers.

EDIT: btw..i've no idea what's used in the script you're talking about (I suddenly realized i was in the wrong forum :P)

EDIT2: since you're posting in this forum you mean "chanlimit.tcl", right? I checked now and it's using 'timer', so you're limited to whole minutes.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ok, I changed the timer $cl_timer cl_dolimit to utimer $cl_timer cl_dolimit
and I set cl_timer 30
this should make it check every 30secs right ?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Yes, but it will also make the check for running timers fail and you'll have multiple timers running if you .rehash.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ok it worked. but how can i fix the checking for running timers ?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

well, I guess if i put this topic in the tcl scripts forum there would me more help. why's don't ppl check this forum as well :P

so does anybody have any idea on how to make the script keep checking for utimers ??
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

I haven't been inclined to assist because chanlimit.tcl wasn't designed for extremely low margins in terms of both the interval and limit setting. I consider it a bit of an abuse of the feature -- too many channels these days are pointlessly flooded with +l changes.

If the reason for setting such a frequent interval is problems with low limits being set after netsplits, you might want to try increasing the wait-split setting in your bot's config file. Unless the behaviour of [chanlist] has recently changed, the bot will still count split users as if they were on the channel, and only splits that last longer than wait-split will cause a problem.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

well, actually no.
its not because of net-splits. but the channel the bot is in may have more than 6 join in 1 minute (and i have the limit set to +6), so I don't want the channel to get full, that's why I want the bot to check for limits every 30seconds.

thank You :)
Locked