<?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/13368" />

	<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>2007-04-10T20:51:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ImPr3zA]]></name></author>
		<updated>2007-04-10T20:51:04-04:00</updated>

		<published>2007-04-10T20:51:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71995#p71995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71995#p71995"/>
		<title type="html"><![CDATA[Modif. Clones Detector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71995#p71995"><![CDATA[
Can I use a ban timer ?<br>and don't use this script on voice, op, half-op, co-own, own ??? v % @ &amp; ~<br><br>Thx again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8900">ImPr3zA</a> — Tue Apr 10, 2007 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-04-10T19:03:41-04:00</updated>

		<published>2007-04-10T19:03:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71991#p71991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71991#p71991"/>
		<title type="html"><![CDATA[Modif. Clones Detector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71991#p71991"><![CDATA[
Replace<div class="codebox"><p>Code: </p><pre><code>lappend cnicks "$i"</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>set cnicks $i</code></pre></div>and replace<div class="codebox"><p>Code: </p><pre><code>foreach cnick $cnicks {    putquick "KICK $chan $cnick :$clone_msg"}</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>putquick "KICK $chan $cnicks :$clone_msg"</code></pre></div>This way, the bot will only kick the last clone.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 10, 2007 7:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ImPr3zA]]></name></author>
		<updated>2007-04-10T12:47:33-04:00</updated>

		<published>2007-04-10T12:47:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71984#p71984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71984#p71984"/>
		<title type="html"><![CDATA[Modif. Clones Detector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71984#p71984"><![CDATA[
I want to modify my Clones Detector Script. <br>This script kicks the TWO clones and ban clone's host.<br>How set the script  to kick only one clone. (One get Kicked and the other one stay on the channel)<br><br>Ex: <br><div class="codebox"><p>Code: </p><pre><code>bob joins (a@a.com)bob2 joins (a@a.com)Egg bans (a@a.com)Egg kicks bob2 </code></pre></div>Script:<div class="codebox"><p>Code: </p><pre><code># Set the next line as the kick msg you want to sayset clone_msg "Clones"# Set the next line as the number of clones to scan forset clone_max 2# Set the next line as the channels you want to run inset clone_chans "#MyChan"proc join_clone {nick uhost hand chan} { global clone_msg clone_max clone_chans botnick if {(([lsearch -exact [string tolower $clone_chans] [string tolower $chan]] != -1) || ($clone_chans == "*")) &amp;&amp; (![matchattr $hand m|m $chan]) &amp;&amp; (![matchattr $hand b]) &amp;&amp; ($nick != $botnick)} {  set host [lindex [split $uhost @] 1]  set count 0  foreach i [chanlist $chan] {   if {[string equal -nocase [lindex [split [getchanhost $i $chan] @] 1] $host]} {    incr count    lappend cnicks "$i"   }  }  if {$count &gt;= $clone_max} {   putquick "MODE $chan +b *!*@$host"   foreach cnick $cnicks {    putquick "KICK $chan $cnick :$clone_msg"   }  } }}bind join - * join_clone</code></pre></div>Thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8900">ImPr3zA</a> — Tue Apr 10, 2007 12:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
