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.

Need a channel Protection Script

Old posts that have not been replied to for several years.
Locked
S
Slodge
Voice
Posts: 3
Joined: Mon Aug 15, 2005 3:28 am

Need a channel Protection Script

Post by Slodge »

i need a tcl for the following - hope u can help me out ...

1. Kick and ban user for 5mins who repeats 4times in 3secs (Reason : No Repeat Flood)
2. Kick and ban user for 3mins who notice a channel , any kind of notice (Reason : Notice is not allowed here)
3. Kick and ban user for 5mins who use excessive ctrl-coded (Reason : Excessive control codes )
4. Auto reply private msg with the word 'I am an eggdrop bot $version. Please msg my owner $owner if it's important'
5. Ban user who flyby's for 3mins (Reason : Flyby's Punished)
6. Ignore channel banlist request from an unknown user

Though i found some channel protection tcl at the tcl archieve ... i want all of this in one tcl (all-in-one) . Please help
Ya!!!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

AllFloodProtection does all these and more, as for the eggdrop private reply thing use:

Code: Select all

bind msgm - * reply:user

proc reply:user {nick uhost hand arg} {
 puthelp "PRIVMSG $nick :I am an eggdrop bot [lindex $::version 0]. Please msg my owner $::owner if it's important."
}
But is lame IMO.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Sir_Fz wrote:But is lame IMO.
An IRCOp's aide? Makes their life easier I guess. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Bleh you just need to use a timer to pushmode and remove the ban whenever you like, 5 mins, 1min, 1day, 1 year etc. Besides there is nothing such as all in one script. It's basically a text file so you can add all your tcl scripts into one file, like I have a 600kb file, or load them seperately in different files.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Actually no it isn't just copy the scripts into 1 file, that would just make editing scripts harder. If you write a script who's purpose is to manage all floods for example then you'll be able to synchronize between the procs (i.e. tcl commands and variables). This way you may be able to have better management of floods.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Well basically all channel flood protections and private protections are already built in the eggdrop i.e. flood-chan, flood-join, flood-ctcp, flood-kick, flood-deop and flood-msg. We can however use TCL to enhance these further and choose our own style how we would like to utilize them.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

awyeah wrote:Bleh you just need to use a timer to pushmode and remove the ban whenever you like, 5 mins, 1min, 1day, 1 year etc. Besides there is nothing such as all in one script. It's basically a text file so you can add all your tcl scripts into one file, like I have a 600kb file, or load them seperately in different files.
using timers for bans is pointless, eggdrop has timed ban commands for a reason
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Depends if you want to use newchanban/newban or want to do it your own way, using pushmode +b, putserv +b and then removing it -b with a timer/utimer.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

awyeah wrote:Depends if you want to use newchanban/newban or want to do it your own way, using pushmode +b, putserv +b and then removing it -b with a timer/utimer.
why would you want to do that "your own way"? what's the rationale behind using explicit timer instead of the built-in one? the only functional difference between the two is that chanops can remove a ban which is not on the bot's banlist and it won't be enforced again upon culprit re-entering the channel, but that's hardly the desired behaviour of a protection script which is meant to punish
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

for the later case you can use a script again that enables chanops known by the bot to be able to remove them. An example would be my banmanger script :D.
almost everything can be done via scripts and everything can be done (keeping TCP and IRC restrictions in mind) directly modifiing the eggdrop source ^-^. Its just a matter of effort.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked