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 

Anty join flood tcl

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
kem
Voice


Joined: 22 May 2004
Posts: 6

PostPosted: Sat May 22, 2004 11:30 am    Post subject: Anty join flood tcl Reply with quote

I need tcl when i give .ckick on dcc bot kick all user who have entered on channel 0-10s ago:)

bind dcc n ckick a:ckick

proc a:ckick {handle idx arg} {
set key [lindex $arg 0]
set chan [lindex $arg 1]
if {($chan=="") || (![ischanname $chan])} {putdcc $idx "Usage: .ckick password chan"
return 0}
if {![validchan $chan] || ![botonchan $chan]} {putidx $idx "I'm not on [b]$chan[b]."
return 0}
if {[encrypt $key $key] == "My key"} {putcmdlog "[31m#[0m$handle[31m#[0m tkm $chan"
foreach cupa [chanlist $chan] {
if {[expr [unixtime]-[getchanjoin $cupa $chan]]<10} {return 0}
if {![matchattr [nick2hand $cupa $chan] o|o $chan] && [isop $cupa $chan] && ![isbotnick $cupa]} {lappend kl $cupa}}
if {![info exists kl]} {putidx $idx "I don't see anyone to kick on [b]$chan[b]."
return 0}
mkf $chan $kl} {control $idx chon:SlaveS}
return 0}

proc mkf {c k} {foreach b [bots] {if {[matchattr $b K] && [isop [hand2nick $b $c] $c]} {putbot $b "mk:k $c [lrange $k 0 3]"
if {[set k [lrange $k 4 end]]==""} {return 0} } }
if {[botisop $c]} {putserv "KICK $c [join [lrange $k 0 3] ,] :Sio!"
if {[set k [lrange $k 4 end]]==""} {return 0} } mkf $c $k}
# Someone know what i did wrong? Smile Bot has kick users who are 0-10s in channel Smile Pls help!Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
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