egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 88, 89, 90  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Aug 01, 2005 10:30 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Aug 02, 2005 8:11 am    Post subject: Reply with quote

Would binding to raw and returning 1 during a flood stop triggering binds?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
stevegarbz
Op


Joined: 04 Dec 2004
Posts: 104

PostPosted: Tue Aug 02, 2005 9:10 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Aug 02, 2005 12:37 pm    Post subject: Reply with quote

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.)
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Aug 02, 2005 2:10 pm    Post subject: Reply with quote

what type of flud catches private messages, notices and ctcps?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Aug 02, 2005 2:31 pm    Post subject: Reply with quote

Quote:

(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)
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Aug 02, 2005 2:40 pm    Post subject: Reply with quote

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

btw I already use flud for join floods.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Aug 02, 2005 4:28 pm    Post subject: Reply with quote

the channel parameter is "*" for flood in private
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Aug 02, 2005 7:57 pm    Post subject: Reply with quote

That's just what I needed Smile
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
minted
Halfop


Joined: 20 Jul 2005
Posts: 64

PostPosted: Tue Aug 09, 2005 3:33 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Aug 10, 2005 12:33 pm    Post subject: Reply with quote

Yes it does trigger on actions the same way as normal text. As for the ctcps, you mean bad ctcp requests?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
minted
Halfop


Joined: 20 Jul 2005
Posts: 64

PostPosted: Wed Aug 10, 2005 4:32 pm    Post subject: Reply with quote

/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 Smile
Back to top
View user's profile Send private message
martpen69
Voice


Joined: 20 Jun 2005
Posts: 32

PostPosted: Wed Aug 10, 2005 8:40 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Wed Aug 10, 2005 9:25 pm    Post subject: Reply with quote

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.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Aug 11, 2005 8:20 am    Post subject: Reply with quote

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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 88, 89, 90  Next
Page 13 of 90

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber