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.

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
n
nuub
Voice
Posts: 5
Joined: Sun Jun 26, 2005 4:06 pm

Post by nuub »

nah i like this script...what is bantype?

# Bad ident ban type. (-1 to disable ban)
set bident(btype) 2

Is this the Bantime? I set the Bantime on 30, but the bot removes every ban after 2 min.

# Bad ident ban time. (0 for no ban time)
set bident(btime) 30
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Code: Select all

set masktypeDefaultType 3
·­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 »

nuub wrote:nah i like this script...what is bantype?

# Bad ident ban type. (-1 to disable ban)
set bident(btype) 2

Is this the Bantime? I set the Bantime on 30, but the bot removes every ban after 2 min.

# Bad ident ban time. (0 for no ban time)
set bident(btime) 30
ban type is the type of ban you want to set on the channel, which are written before starting the configuration (yeah you're supposed to read before loading).
## Available ban types:
# 0: *!user@full.host.tld
# 1: *!*user@full.host.tld
# 2: *!*@full.host.tld
# 3: *!*user@*.host.tld
# 4: *!*@*.host.tld
# 5: nick!user@full.host.tld
# 6: nick!*user@full.host.tld
# 7: nick!*@full.host.tld
# 8: nick!*user@*.host.tld
# 9: nick!*@*.host.tld
btw: The bans that are set by this script can be normaly removed by any other op, allfloodprotection does not use the internal banlist so be sure about what you're saying before you say anything.

Edit: I just noticed that I've used '30' instead of '$bident(btime)' in the bad ident proc, so the script will remove the ban after 30 minutes whatever you set bident(btime) to. Will be fixed in the next release, which has alot of bugs fixed btw.
User avatar
dotslasher
Halfop
Posts: 62
Joined: Sun Aug 10, 2003 8:10 pm

Post by dotslasher »

i have a suggestion/request: add a toggle for protecting voices in the channels, because right now it doesnt react on people who are voiced.


maybe a set punish(etype) 3

--> types of punish exemptions:

1 exempt voices from punishment
2 exempt halfops from punishment
3 dont exempt voices or halfops


this is just an idea though

because the script has [isvoice $nick $chan] everywhere so it would be better if we could turn off the isvoice protection as an option in the script.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ok, will be done in the next release :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yes exemption is very necessary. Exemption options are mostly likely recommended to be added:
#These are all the exemption options I have added in all my scripts:

Exemption of channel operators
Exemption of channel half-operators (some ircds support)
Exemption of channel voices
Exemption of users with specific flags global|channel
Exemption of specific nicks
Exemption of specific masks "nick!ident@host.domain"
Exemption of unresolved idents (idents with an asterisk "~")
·­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 »

I have op exemption, +f (friends) and +mo (masters) enabled by default. Only added the ability to choose to either exempt halfops, voices, both or none. If anyone wants the op exemption to be configurable, speak now :P

PS: If you want to exempt masks, just add them to +f handle.
j
johnnys
Voice
Posts: 11
Joined: Thu Jun 30, 2005 8:54 am

Post by johnnys »

[16:23] Tcl error [swear:kick]: list element in quotes followed by "*bitch*"" instead of space
[16:23] Tcl error [swear:action]: list element in quotes followed by "*asshole*"" instead of space
[16:26] Tcl error [swear:kick]: list element in quotes followed by "*sucker*"" instead of space
[16:26] Tcl error [swear:kick]: list element in quotes followed by "*nutte*"" instead of space
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

That's what happens if you don't configure the script correctly.
The list of badwords should look like this for example:

Code: Select all

set list {
 "element1"
 "*element2*"
 "bla"
}
Don't forget to close the quotes "" and don't stick the elements with each other like "element1""element2" separate them with space in case that's what you've done. I think your problem is with a forgotten close-quote.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

AllFloodProtection v3.9 have been released, this is hopefully the final complete version. The script has the following changes:
  • Fixed several bugs that I've discovered through using the script, that's with the help of the lame flooders who didn't know that they've helped me :P
  • Added several new features such as:
    • checking for bad nicks/idents, random drones and clones in the nicklist when the bot first joins and gains op. This feature is totally configurable and can be disabled/enabled and you can even make it check only for 1 of those 4 (or more...).
    • Sending a notice to the channel that it has been locked due to flood which can be disabled as well, and putlog in partyline when the bot locks a channel due to flood. (like sentinel.tcl by slennox)
    • New exempts system, that can be understood by reading my initial post in this topic.
  • Made some functionality improvements to the script that I don't recall them all. But all for our benefit :P
Maybe there's more, but I don't remember.

This version might still have some bugs. If you encounter any, please send an email about the bug to Fz at nexushells.net or post it here. Thank you :)
User avatar
dotslasher
Halfop
Posts: 62
Joined: Sun Aug 10, 2003 8:10 pm

Post by dotslasher »

i'm sorry to report you but the version reply thingy you tried to add causes the script not to be loaded:

Code: Select all

if {![string match -nocase "* Opposing *" $ctcp-version]} {
 set ctcp-version "$ctcp-version - Using \002A\002ll\002F\002lood\002P\002rotection v3.9 by Opposing (aka Sir_Fz) http://hub.nexushells.net/~Fz/"
}
so i commented it out and it loads now.

tcl set errorinfo:

Code: Select all

[17:48:12] [Raziel]: Tcl: can't read "ctcp": no such variable
[17:48:13] [Raziel]: Tcl: while executing
[17:48:13] [Raziel]: Tcl: "string match -nocase "* Opposing *" $ctcp-version"
[17:48:13] [Raziel]: Tcl: (file "scripts/allfloodprotection3.9.tcl" line 1)

Code: Select all

7:48:11] [Raziel]: [11:48] loadall: Unable to load scripts/allfloodprotection3.9.tcl (error: can't read "ctcp": no such variable)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ahh yeah, it should be ${ctcp-version}, damn it :evil:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Fixed the ctcp-version problem in v4.0 :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I have just submitted the script to the tcl archive on egghelp.org. Thanx for all who helped me with this script, it's been fun :D
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

I Think i speak for all of us when i say.

NICE ONE!!!

I feel sad replacing sentinel though :roll:

Thanks pal :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Post Reply