| View previous topic :: View next topic |
| Author |
Message |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Aug 01, 2005 10:30 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Aug 02, 2005 8:11 am Post subject: |
|
|
Would binding to raw and returning 1 during a flood stop triggering binds? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
stevegarbz Op
Joined: 04 Dec 2004 Posts: 104
|
Posted: Tue Aug 02, 2005 9:10 am Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Aug 02, 2005 12:37 pm Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Aug 02, 2005 2:10 pm Post subject: |
|
|
what type of flud catches private messages, notices and ctcps? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Aug 02, 2005 2:31 pm Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Aug 02, 2005 2:40 pm Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Aug 02, 2005 4:28 pm Post subject: |
|
|
| the channel parameter is "*" for flood in private |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
minted Halfop
Joined: 20 Jul 2005 Posts: 64
|
Posted: Tue Aug 09, 2005 3:33 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Aug 10, 2005 12:33 pm Post subject: |
|
|
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 |
|
 |
minted Halfop
Joined: 20 Jul 2005 Posts: 64
|
Posted: Wed Aug 10, 2005 4:32 pm Post subject: |
|
|
/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  |
|
| Back to top |
|
 |
martpen69 Voice
Joined: 20 Jun 2005 Posts: 32
|
Posted: Wed Aug 10, 2005 8:40 pm Post subject: |
|
|
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 |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Wed Aug 10, 2005 9:25 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Aug 11, 2005 8:20 am Post subject: |
|
|
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 |
|
 |
|