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.
Old posts that have not been replied to for several years.
-
w
weinee
Post
by weinee »
can anyone pls tell me how to write a tcl script for eggdrop that will auto rehash on xx minutes? thanks.

-
Souperman
- Halfop
- Posts: 69
- Joined: Sat Feb 02, 2002 8:00 pm
- Location: Cape Town, South Africa
-
Contact:
Post
by Souperman »
Code: Select all
foreach time {"00" "10" "20" "30" "40" "50"} { bind time - "$time * * * *" time:rehash }
proc time:rehash {min hr day mth yr} {
rehash
}
As a matter of interest, why would you need to rehash every ten minutes?
<font size=-1>[ This Message was edited by: Souperman on 2002-04-12 17:20 ]</font>
-
Petersen
- Owner
- Posts: 685
- Joined: Thu Sep 27, 2001 8:00 pm
- Location: Blackpool, UK
Post
by Petersen »
and why use that foreach when you can just bind time - "*0 * * * *" time:rehash?
-
Souperman
- Halfop
- Posts: 69
- Joined: Sat Feb 02, 2002 8:00 pm
- Location: Cape Town, South Africa
-
Contact:
Post
by Souperman »
Yeah, didn't think of that.
