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.
Support & discussion of released scripts, and announcements of new releases.
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Aug 01, 2005 10:30 pm
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
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Tue Aug 02, 2005 8:11 am
Would binding to raw and returning 1 during a flood stop triggering binds?
stevegarbz
Op
Posts: 104 Joined: Sat Dec 04, 2004 7:25 pm
Post
by stevegarbz » Tue Aug 02, 2005 9:10 am
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.
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Tue Aug 02, 2005 12:37 pm
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.)
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Tue Aug 02, 2005 2:10 pm
what type of flud catches private messages, notices and ctcps?
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Tue Aug 02, 2005 2:31 pm
(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)
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Tue Aug 02, 2005 2:40 pm
But those also trigger for public msg and ctcp floods as well.
btw I already use flud for join floods.
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Tue Aug 02, 2005 4:28 pm
the channel parameter is "*" for flood in private
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Tue Aug 02, 2005 7:57 pm
That's just what I needed
minted
Halfop
Posts: 64 Joined: Wed Jul 20, 2005 9:58 am
Post
by minted » Tue Aug 09, 2005 3:33 pm
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.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Aug 10, 2005 12:33 pm
Yes it does trigger on actions the same way as normal text. As for the ctcps, you mean bad ctcp requests?
minted
Halfop
Posts: 64 Joined: Wed Jul 20, 2005 9:58 am
Post
by minted » Wed Aug 10, 2005 4:32 pm
/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
martpen69
Voice
Posts: 32 Joined: Mon Jun 20, 2005 3:56 pm
Post
by martpen69 » Wed Aug 10, 2005 8:40 pm
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
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Wed Aug 10, 2005 9:25 pm
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.
==================================
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Thu Aug 11, 2005 8:20 am
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.