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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what other binds? I didn't check with source, but it seems that setting has effect on all binds

if you want to skip the automatic bot ignore altogether, bind for FLUD and return 1; but you'll need to make sure your script handles the situation
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Would binding to raw and returning 1 during a flood stop triggering binds?
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

All I have to say is... wow...

At first I wasn't going to try this script because it was so long, but I am very glad I did. Works great! Good job, Sir_Fz.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Sir_Fz wrote:Would binding to raw and returning 1 during a flood stop triggering binds?
yes it would, but why bind RAW and not FLUD? you know that binding raw is somewhat risky, eggdrop skips all server output processing when you return 1 from the raw handler, which could lead to a potential desync (think discrepancies between channel's lists and bot's lists - users, modes, bans, etc.)
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

what type of flud catches private messages, notices and ctcps?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

(30) FLUD (stackable)
bind flud <flags> <type> <proc>
procname <nick> <user@host> <handle> <type> <channel>

Description: any floods detected through the flood control settings
(like 'flood-ctcp') are sent here before processing. If the proc
returns 1, no further action is taken on the flood; if the proc
returns 0, the bot will do its normal "punishment" for the flood.
The flood types are: pub, msg, join, or ctcp (and can be masked to
"*" for the bind); flags are ignored.
Module: server
therefore, you need "msg" and "ctcp" types

(I'd use that bind for pub and join flood too)
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

But those also trigger for public msg and ctcp floods as well.

btw I already use flud for join floods.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

the channel parameter is "*" for flood in private
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

That's just what I needed :)
m
minted
Halfop
Posts: 64
Joined: Wed Jul 20, 2005 9:58 am

Post by minted »

might seem an odd request, but is it possible to make the swear protection pick up channel ctcp's also? 1 of the channels on our server is a kids channel, which can be accessed on a java client, and channel ctcp's show in the channel as normal txt.
i cant see this being a problem for ppl who wouldnt use/need this function.
and does it pick up actions? im too lazy to check and havent noticed.
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Yes it does trigger on actions the same way as normal text. As for the ctcps, you mean bad ctcp requests?
m
minted
Halfop
Posts: 64
Joined: Wed Jul 20, 2005 9:58 am

Post by minted »

/ctcp #chan sound "swear word here"
something like that.
just wondering if the swear kick can be made to pick up swearing in ctcp's, as this shows as normal text on our java clients.
if not, its no biggie :)
m
martpen69
Voice
Posts: 32
Joined: Mon Jun 20, 2005 3:56 pm

Post by martpen69 »

this is the out put of
.set errorInfo

[01:35am] [BiG-R0N] .set errorInfo
[01:35am] <Chicken-Head> [19:35] #BiG-R0N# set errorInfo
[01:35am] <Chicken-Head> Currently: expected integer but got ""
[01:35am] <Chicken-Head> Currently: while executing
[01:35am] <Chicken-Head> Currently: "incr NumKicks"
[01:35am] <Chicken-Head> Currently: (procedure "getkcount" line 3)
[01:35am] <Chicken-Head> Currently: invoked from within
[01:35am] <Chicken-Head> Currently: "getkcount"
[01:35am] <Chicken-Head> Currently: ("foreach" body line 3)
[01:35am] <Chicken-Head> Currently: invoked from within
[01:35am] <Chicken-Head> Currently: "foreach jnick [chanlist $chan] {
[01:35am] <Chicken-Head> Currently: if {[string equal -nocase [scan [getchanhost $jnick $chan] %*\[^@\]@%s] [scan $uhost %*\[^@\]@%s]]} {
[01:35am] <Chicken-Head> Currently: putqui..."
[01:35am] <Chicken-Head> Currently: ("5" arm line 2)
[01:35am] <Chicken-Head> Currently: invoked from within
[01:35am] <Chicken-Head> Currently: "switch -- $method {
[01:35am] <Chicken-Head> Currently: 5 {
[01:35am] <Chicken-Head> Currently: foreach jnick [chanlist $chan] {
[01:35am] <Chicken-Head> Currently: if {[string equal -nocase [scan [getchanhost $jnick $chan] %*\[^@\]@%s] [scan $uhost..."
[01:35am] <Chicken-Head> Currently: (procedure "punish:method2" line 4)
[01:35am] <Chicken-Head> Currently: invoked from within
[01:35am] <Chicken-Head> Currently: "punish:method2 $eclones(pmeth) $nick $uhost $chan $eclones(kmsg) $eclones(wmsg) $eclones(btype) $eclones(btime) $eclones(klmsg) $eclones(ktime) $eclon..."
[01:35am] <Chicken-Head> Currently: (procedure "clones:kick" line 15)
[01:35am] <Chicken-Head> Currently: invoked from within
[01:35am] <Chicken-Head> Currently: "clones:kick $_jp1 $_jp2 $_jp3 $_jp4"


hope it helps

thanks
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I think $NumKicks is not a full/complete integer.
·­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: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You probably tried to mess with the file where the kick number has been stored, thus the variable NumKicks does not have a valid integer in it. What's the use of counting if you're gonna cheat? try removing all possible spaces from the file.
Post Reply