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.

Join/Part flood to kick with a message

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Join/Part flood to kick with a message

Post by cache »

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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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.
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

you can set kickreason to "update your java" in antiflyby script.
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

Code: Select all

#######################################
# 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.
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Yeah, I went thru AllProtection and don't want it to lock channel... that script is so huge lol.
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thanks Sir, I'll be watching for it, unless someone can make me just the kick part :)
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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

Post by demond »

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: Select all

 tag when posting logs, code
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

demond I did go thru xChannel

Code: Select all

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

Post by demond »

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: Select all

 tag when posting logs, code
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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

Post by demond »

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: Select all

 tag when posting logs, code
Post Reply