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.

eggdrop abuse

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

eggdrop abuse

Post by Torrevado »

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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Post by Torrevado »

Alchera wrote:Tcl Archive
Obviously there's no such script, otherwise this request wouldn't have been done :wink:

Thanks anyway :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Read this topic and apply that proc given by user into your script (see the example code).
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Post by Torrevado »

Thanks, Sir_Fz :wink:

I guess I have to add that proc into every script, isn't it?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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)"
   }
}
Post Reply