| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Jan 10, 2006 5:13 am Post subject: Join/Part flood to kick with a message |
|
|
I am in need of a part/join kicker...
I don't prefer the .chanset # flood-join 4:10 option eggdrop has since it is banning when I prefer 'kick'.
Say if they join room 4 times in 10 seconds it'll kick them NOT BAN and I want it to have a kick message of why they was kicked...
I've downloaded every join/part kick script but it is not how I want it.
Thanks. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Jan 10, 2006 8:24 am Post subject: |
|
|
You could try Anti Flyby which checks that a user stays within a channel for a time you set and bans if they do not.
You could also try xchannel enabling only the join/part option. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Jan 10, 2006 12:43 pm Post subject: |
|
|
Do you know of any with settings like 4 times in 10 seconds? These ones only let you set a time they can't part join after they join.
some chatters who use java chat interface go in and out of room maybe 3 times then they stick, however some go in and out a million times till someone kicks em... is why I want bot to kick with a message that they need to update java. |
|
| Back to top |
|
 |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Tue Jan 10, 2006 2:48 pm Post subject: |
|
|
| you can set kickreason to "update your java" in antiflyby script. |
|
| Back to top |
|
 |
username Op

Joined: 06 Oct 2005 Posts: 196 Location: Russian Federation, Podolsk
|
Posted: Tue Jan 10, 2006 2:53 pm Post subject: |
|
|
| Code: | #######################################
# Flyby.tcl by KuNgFo0 (www.eggfaq.com)
#VERSION 0.1
#DESCRIPTION Anti-flyby script (for against people joining then immediately parting channels).
# Set the next line as the kick msg you want to say
set flyby_msg "update your java and come back"
# Set the next line as the max duration between joining and parting in seconds
set flyby_time 10
# Set the next line as the length for the ban in minutes
set flyby_bantime 1
# Set the next line as the channels you want to run in
set flyby_chans "#testchannel1 #testchannel2"
proc join_flyby {nick uhost hand chan} {
global flyby_time flyby_chans flyby_data
if {(([lsearch -exact [string tolower $flyby_chans] [string tolower $chan]] != -1) || ($flyby_chans == "*")) && (![matchattr $hand b]) && (![isbotnick $nick]) && (![matchattr $hand f|f $chan]) && (![info exists flyby_data([set hash [protect_hash $nick $chan]])])} {
set flyby_data($hash) 1
utimer $flyby_time [list protect_unset flyby $hash]
}
}
proc part_flyby {nick uhost hand chan {msg ""}} {
global flyby_msg flyby_bantime flyby_chans flyby_data botnick
if {(([lsearch -exact [string tolower $flyby_chans] [string tolower $chan]] != -1) || ($flyby_chans == "*")) && (![matchattr $hand b]) && (![isbotnick $nick]) && (![matchattr $hand f|f $chan]) && ([info exists flyby_data([set hash [protect_hash $nick $chan]])])} {
newchanban $chan [maskhost $uhost] $botnick $flyby_msg ${flyby_bantime}min
flushmode $chan
putserv "KICK $chan $nick :$flyby_msg"
protect_unset flyby $hash
}
}
# Generate an array-friendly but unique string
proc protect_hash {nick chan} {
global protect_hash_type
set hash [list $nick $chan]
switch -- $protect_hash_type {
md5 { return [md5 $hash] }
encrypt { return [encrypt $hash $hash] }
default { return $tmp }
}
}
# Unset an array hash
proc protect_unset {data hash} {
global $data\_data
if {[info exists $data\_data($hash)]} { unset $data\_data($hash) }
}
bind join - * join_flyby
bind part - * part_flyby
# Find hash generation type
if {[info commands md5] == "md5"} { set protect_hash_type "md5" ; # Eggdrop 1.5 and up } \
elseif {[info commands encrypt] == "encrypt"} { set protect_hash_type "encrypt" ; # Eggdrop up to 1.4 } \
else { set protect_hash_type "default" ; # Shouldn't happen }
putlog "*** Flyby.tcl 0.1 by KuNgFo0 loaded"
|
I use this script, and you try it. It`ll ban them for 1 minute. Sorry if I didn`t understand your question properly. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Jan 10, 2006 5:27 pm Post subject: |
|
|
| cache wrote: | Do you know of any with settings like 4 times in 10 seconds? These ones only let you set a time they can't part join after they join.
some chatters who use java chat interface go in and out of room maybe 3 times then they stick, however some go in and out a million times till someone kicks em... is why I want bot to kick with a message that they need to update java. |
In AllProtection you can set <times>:<seconds> in which the bot will lock the channel. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Jan 10, 2006 5:34 pm Post subject: |
|
|
| Yeah, I went thru AllProtection and don't want it to lock channel... that script is so huge lol. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Jan 10, 2006 6:01 pm Post subject: |
|
|
| cache wrote: | | Yeah, I went thru AllProtection and don't want it to lock channel... that script is so huge lol. |
Yeah lol, I'm trying to *shrink* it before releasing the newer version. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Jan 10, 2006 6:09 pm Post subject: |
|
|
Thanks Sir, I'll be watching for it, unless someone can make me just the kick part  |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sun Jan 15, 2006 3:07 am Post subject: |
|
|
| Guess i'll go ahead and use flyby even tho I don't want those kicked who join/part 3 times then are able to sit still. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Jan 15, 2006 4:14 am Post subject: |
|
|
if you bothered to research both scripts Alchera pointed you to, you probably would've noticed that xchannel does exactly what you need (and the whole lot more it does - without being huge - is disabled by default) _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sun Jan 15, 2006 8:33 am Post subject: |
|
|
demond I did go thru xChannel
| Code: | | # % revolving door (join for a few secs, then part) # |
It's like flyby - not what im looking for.
Only script that seems to have it is AllProtection but almost. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Jan 15, 2006 1:17 pm Post subject: |
|
|
nope, that's not what you said you need
you said you need join flood kick (but not ban), and xchannel has exactly that (which is different from the anti-"revolving door" feature) - configurable punishment (warn, kick or kick+ban) for join flood, via normal eggdrop join flood settings M:N (max M joins in N seconds allowed)
obviously people don't pay too much attention to xchannel's doc header, and/or simply don't get it - and I wonder why, it pretty much explains every single feature of the script and how to use it in plain english
btw if you are going to use it, see the support thread - you need to patch your bot (an easy patch) since apparently those lazy eggheads won't release another version anytime soon (if ever) _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sun Jan 15, 2006 3:21 pm Post subject: |
|
|
lol I feel like such an idiot now... it is done via chanset I see..
Now I need to try and figure out what option is for part-join floods |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Jan 15, 2006 3:33 pm Post subject: |
|
|
well, join flood implies also part-join flood, since you can't really flood with joins without parting  _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
|