<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/7520" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-05-22T11:30:13-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/7520</id>

		<entry>
		<author><name><![CDATA[kem]]></name></author>
		<updated>2004-05-22T11:30:13-04:00</updated>

		<published>2004-05-22T11:30:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36523#p36523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36523#p36523"/>
		<title type="html"><![CDATA[Anty join flood tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36523#p36523"><![CDATA[
I need tcl when i give .ckick on dcc bot kick all user  who have entered on channel 0-10s ago:)<br><br>bind dcc n ckick a:ckick<br><br>proc a:ckick {handle idx arg} {<br> set key [lindex $arg 0]<br> set chan [lindex $arg 1]<br> if {($chan=="") || (![ischanname $chan])} {putdcc $idx "Usage: .ckick password chan"<br> return 0}<br> if {![validchan $chan] || ![botonchan $chan]} {putidx $idx "I'm not on <strong class="text-strong">$chan<strong class="text-strong">."<br> return 0}<br> if {[encrypt $key $key] == "My key"} {putcmdlog "[31m#[0m$handle[31m#[0m tkm $chan"<br> foreach cupa [chanlist $chan] {<br> if {[expr [unixtime]-[getchanjoin $cupa $chan]]&lt;10} {return 0}<br> if {![matchattr [nick2hand $cupa $chan] o|o $chan] &amp;&amp; [isop $cupa $chan] &amp;&amp; ![isbotnick $cupa]} {lappend kl $cupa}}<br> if {![info exists kl]} {putidx $idx "I don't see anyone to kick on <strong class="text-strong">$chan<strong class="text-strong">."<br> return 0}<br> mkf $chan $kl} {control $idx chon:SlaveS}<br> return 0}<br><br>proc mkf {c k} {foreach b [bots] {if {[matchattr $b K] &amp;&amp; [isop [hand2nick $b $c] $c]} {putbot $b "mk:k $c [lrange $k 0 3]"<br> if {[set k [lrange $k 4 end]]==""} {return 0} } }<br> if {[botisop $c]} {putserv "KICK $c [join [lrange $k 0 3] ,] :Sio!"<br> if {[set k [lrange $k 4 end]]==""} {return 0} } mkf $c $k}<br># Someone know what i did wrong? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Bot has kick users who are 0-10s in channel <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Pls help!:)</strong></strong></strong></strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4970">kem</a> — Sat May 22, 2004 11:30 am</p><hr />
]]></content>
	</entry>
	</feed>
