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.

[TCL] cmd Flood protection

Old posts that have not been replied to for several years.
Locked
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

[TCL] cmd Flood protection

Post by GodOfSuicide »

I'm trying to run an email script, and some of the main features allready work (big thx to #egghelp :D).

Code: Select all

# user 1
if {[string match "user1*" [lindex $arg 0]]} {
set mail "me@host.com"
set body [lrange $arg 1 end]

# user2
} elseif {[string match "user2*" [lindex $arg 0]]} { 
set mail "he@host.com"
set body [lrange $arg 1 end]
......
This allready works fine, but i got one problem : somebody could use this as an mail bomber, so i'd need a feature that u can send a person 1 mail in 10 minutes if you have flag "+f", 1 mail in 5 minutes if you have +o, and unlimited if you have m/n flag.

I haven't found such a script yet, only generell flood protection and stuff.
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

If you could paste the whole proc it would be easier, since I'm finding it a bit bloating outlining where certain things may or may not go in the context of an unknown script :)
Locked