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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Torrevado
Op
Posts: 101 Joined: Wed Aug 02, 2006 6:29 pm
Post
by Torrevado » Sat Apr 21, 2007 6:07 am
Hi ,
I'd like a script to prevent commands flood (eggdrop commands). I mean eggdrop would kick (and give reason) people who use more than allowed number of request per minute. If a user has been kicked and rejoin asking the bot again before 1 minute, the user will be banned.
All commands are triggered with "! "
Thanks
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Sat Apr 21, 2007 11:44 pm
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
Torrevado
Op
Posts: 101 Joined: Wed Aug 02, 2006 6:29 pm
Post
by Torrevado » Mon Apr 23, 2007 5:07 pm
Obviously there's no such script, otherwise this request wouldn't have been done
Thanks anyway
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Apr 23, 2007 6:32 pm
Read
this topic and apply that proc given by user into your script (see the example code).
Torrevado
Op
Posts: 101 Joined: Wed Aug 02, 2006 6:29 pm
Post
by Torrevado » Mon Apr 23, 2007 6:55 pm
Thanks, Sir_Fz
I guess I have to add that proc into every script, isn't it?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Apr 23, 2007 7:25 pm
It's enough to add it into one script, you can use it in all your procs as long as it is loaded. I guess user's example code is enough to teach you how to use the proc:
user wrote: Code: Select all
bind pub n !test pub:test
proc pub:test {n u h c a} {
if {[throttled $u,$c 30]} {
puthelp "PRIVMSG $c :$n: denied. (wait or try a different channel)"
} else {
puthelp "PRIVMSG $c :$n: allowed (wait 30 seconds)"
}
}