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

	<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>2018-11-20T05:32:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-11-20T05:32:25-04:00</updated>

		<published>2018-11-20T05:32:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107222#p107222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107222#p107222"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107222#p107222"><![CDATA[
Change:<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList - Clones: $len" </code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList - Clones: [expr $len - 1]" </code></pre></div>and the result will be:<blockquote class="uncited"><div>[02:01] &lt;@xsedition&gt; Starting clonescan for #lapaz...<br>[02:01] &lt;@xsedition&gt; (localhost) Nick list: sicario, supr | Clones: <strong class="text-strong">1</strong><br>[02:01] &lt;@xsedition&gt; Clones: 1 (33.3%) | Real users: 2 (66.7%) | Took: 0.0ms.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 20, 2018 5:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-11-20T02:10:16-04:00</updated>

		<published>2018-11-20T02:10:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107221#p107221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107221#p107221"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107221#p107221"><![CDATA[
<strong class="text-strong">replace what you asked me but the report is not correct</strong><br>Replace:<div class="codebox"><p>Code: </p><pre><code>incr count $len </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>incr count [expr $len - 1]</code></pre></div>that is, if there is a real user and the other is a clone, then it would be like that: <br>suppose that 4 are the nicknames of which 3 are real and one is clone<br>This is in the channel where I am using the tcl<br>the report that gives the old tcl is the correct<br><strong class="text-strong">old tcl</strong><div class="codebox"><p>Code: </p><pre><code>[01:59] &lt;@Arnold_X-P&gt; .clones[01:59] &lt;@xsedition&gt; Starting clonescan for #lapaz ...[01:59] &lt;@xsedition&gt; (localhost) NickClones: sicario, supr - Clones: 1[01:59] &lt;@xsedition&gt; Clones: 1 (25.0%) Real users: 3 (75.0%) - Took: 0.0ms.</code></pre></div><strong class="text-strong">new tcl</strong><div class="codebox"><p>Code: </p><pre><code>[02:01] &lt;@xsedition&gt; Starting clonescan for #lapaz...[02:01] &lt;@xsedition&gt; (localhost) Nick list: sicario, supr | Clones: 2[02:01] &lt;@xsedition&gt; Clones: 1 (33.3%) | Real users: 2 (66.7%) | Took: 0.0ms.</code></pre></div>only this part is the correct thing that the report gives the old tcl and that is what the new tcl needs to perfect<br>[01:59] &lt;@xsedition&gt; <strong class="text-strong">Clones: 1 (25.0%) Real users: 3 (75.0%)</strong> - Took: 0.0ms.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Tue Nov 20, 2018 2:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-11-20T01:45:34-04:00</updated>

		<published>2018-11-20T01:45:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107220#p107220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107220#p107220"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107220#p107220"><![CDATA[
<blockquote class="uncited"><div>Nick list: Guest37056, supr | Clones: 2 </div></blockquote>So, you want to count only one of those as clone and the other as a real user?<br><br>Replace:<div class="codebox"><p>Code: </p><pre><code>incr count $len </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>incr count [expr $len - 1]</code></pre></div>then and the result should be: Clones: 1 (33.3%) | Real users: 2 (66.7%)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 20, 2018 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-11-20T01:24:05-04:00</updated>

		<published>2018-11-19T16:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107215#p107215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107215#p107215"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107215#p107215"><![CDATA[
almost perfect but it lacks something else to work right<br><strong class="text-strong">old tcl</strong><div class="codebox"><p>Code: </p><pre><code>[15:58] &lt;@rashino&gt; .clones[15:58] &lt;xsedition&gt; Starting clonescan for #lapaz ...[15:58] &lt;xsedition&gt; (localhost) NickClones: Guest37056, supr - Clones: 1[15:58] &lt;xsedition&gt; Clones: 1 (25.0%) Real users: 3 (75.0%) - Took: 0.0ms.</code></pre></div><strong class="text-strong">new tcl</strong><div class="codebox"><p>Code: </p><pre><code>[16:04] &lt;@rashino&gt; .clone[16:04] &lt;xsedition&gt; Starting clonescan for #lapaz...[16:04] &lt;xsedition&gt; (localhost) Nick list: Guest37056, supr | Clones: 2[16:04] &lt;xsedition&gt; Clones: 2 (66.7%) | Real users: 1 (33.3%) | Took: 0.0ms.</code></pre></div>the total of users online are 3 where and 1 is clone....<br>the correct is <strong class="text-strong">clones: 1 (25.0%)   real user 3 (75.0%)</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon Nov 19, 2018 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-11-19T15:55:24-04:00</updated>

		<published>2018-11-19T15:55:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107214#p107214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107214#p107214"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107214#p107214"><![CDATA[
/facepalm<br><br>Forgot to replace this line:<div class="codebox"><p>Code: </p><pre><code>set p(c) [expr {$len &gt; 0 ? [format %.1f [expr ($count.0 * 100.0) / $len.0]] : "0.0"}] </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>set p(c) [expr {$total &gt; 0 ? [format %.1f [expr ($count.0 * 100.0) / $total.0]] : "0.0"}] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Nov 19, 2018 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-11-19T14:38:36-04:00</updated>

		<published>2018-11-19T14:38:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107213#p107213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107213#p107213"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107213#p107213"><![CDATA[
the error in the data keeps coming<br><strong class="text-strong">old tcl</strong><div class="codebox"><p>Code: </p><pre><code>[14:31] &lt;@rashino&gt; .clones[14:31] &lt;@xsedition&gt; Starting clonescan for #lapaz ...[14:31] &lt;@xsedition&gt; (127.0.0.1) Nick list: Lara22, ddrt - Clones: 1[14:31] &lt;@xsedition&gt; Clones: 1 (25.0%) | Real users: 3 (75.0%) - Took: 0.977ms.</code></pre></div><strong class="text-strong">new tcl</strong><div class="codebox"><p>Code: </p><pre><code> [14:32] &lt;@rashino&gt; .clone[14:32] &lt;@xsedition&gt; Starting clonescan for #lapaz...[14:32] &lt;@xsedition&gt; (127.0.0.1) Nick list: ddrt, Lara22 | Clones: 2[14:32] &lt;@xsedition&gt; Clones: 2 (200.0%) | Real users: 1 (-100.0%) | Took: 0.0ms.</code></pre></div>the detail is here <strong class="text-strong">[14:32] &lt;@xsedition&gt; Clones: 2 (200.0%) | Real users: 1 (-100.0%) | Took: 0.0ms.</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon Nov 19, 2018 2:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-11-19T15:56:56-04:00</updated>

		<published>2018-11-19T12:28:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107211#p107211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107211#p107211"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107211#p107211"><![CDATA[
Ah, i see where i did wrong. Give this a try:<div class="codebox"><p>Code: </p><pre><code>namespace eval clonescan {variable trigger "."   bind pub m|o "${trigger}clone" [namespace current]::clonescanbind pub m|o "${trigger}clones" [namespace current]::clonescan   proc checknick {nick} {set skip [list "S" "Q"]set test [expr {[lsearch -nocase $skip $nick] &gt; -1 ? "1" : "0"}]}proc clonescan {nick uhost hand chan text} {puthelp "PRIVMSG $chan :Starting clonescan for $chan..."set start [clock clicks]foreach user [chanlist $chan] {if {[checknick $user] || [isbotnick $user]} continueset host [lindex [split [getchanhost $user $chan] @] 1]lappend clones($host) $user}set total 0set count 0foreach host [array names clones] {set len [llength $clones($host)]if {$len &gt; 1} {set nickList [join [join $clones($host)] ", "]puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList | Clones: $len"incr count $len}incr total $len}set p(c) [expr {$total &gt; 0 ? [format %.1f [expr ($count.0 * 100.0) / $total.0]] : "0.0"}]set p(u) [expr (100.0 - $p(c))]set end [clock clicks]puthelp "PRIVMSG $chan :Clones: $count ($p(c)%) | Real users: [expr ($total - $count)] ($p(u)%) | Took: [expr ($end-$start)/1000.0]ms."}}</code></pre></div>Edit: Fixed. I hope. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Nov 19, 2018 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-11-19T11:31:42-04:00</updated>

		<published>2018-11-19T11:31:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107210#p107210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107210#p107210"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107210#p107210"><![CDATA[
but note that the data you give is not correct<br>I will give an example of a report that gives the old tcl<br>here (old tcl)<div class="codebox"><p>Code: </p><pre><code>[22:59] &lt;@Arnold_X-P&gt; .clones[22:59] &lt;xsedition&gt; Starting clon escan for  #lapaz ...[22:59] &lt;xsedition&gt; (127.0.0.1) Nick list: Guest37056, ddrt - Clones: 1[22:59] &lt;xsedition&gt; Clones: 1 (25.0%) Real users: 3 (75.0%) -Took: 0.977ms.</code></pre></div>I put here a report that generates the current tcl (new tcl)<div class="codebox"><p>Code: </p><pre><code>[22:47] &lt;@Arnold_X-P&gt; .clone[22:47] &lt;xsedition&gt; Starting clonescan for #lapaz ...[22:47] &lt;xsedition&gt; (127.0.0.1) Nick list: Guest37056, ddrt | Clones: 2[22:47] &lt;xsedition&gt; Clones: 2 (200.0%) | Real users: -1 (-100.0%) | Took: 0.0ms.</code></pre></div>the detail is that the current tcl does not generate a correct report compared to the old tcl I mean <strong class="text-strong">Clones: 2 (200.0%) | Real users: -1 (-100.0%)</strong><div class="codebox"><p>Code: </p><pre><code>namespace eval clonescan {variable trigger "."bind pub m|o "${trigger}clone" [namespace current]::clonescanbind pub m|o "${trigger}clones" [namespace current]::clonescanproc checknick {nick} {set skip [list "S" "Q"]set test [expr {[lsearch -nocase $skip $nick] &gt; -1 ? "1" : "0"}]}proc clonescan {nick uhost hand chan text} {putquick "PRIVMSG $chan :Starting clonescan for $chan..."set start [clock clicks]foreach user [chanlist $chan] {if {[checknick $user] || [isbotnick $user]} continueset host [lindex [split [getchanhost $user $chan] @] 1]lappend clones($host) $user}set count 0foreach host [array names clones] {set len [llength $clones($host)]if {$len &gt; 1} {set nickList [join [join $clones($host)] ", "]puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList | Clones: $len"incr count $len}}set p(c) [expr {$len &gt; 0 ? [format %.1f [expr ($count.0 * 100.0) / $len.0]] : "0.0"}] set p(u) [expr (100.0 - $p(c))]set end [clock clicks]puthelp "PRIVMSG $chan :Clones: $count ($p(c)%) | Real users: [expr ($len - $count)] ($p(u)%) | Took: [expr ($end-$start)/1000.0]ms."}}</code></pre></div>if you notice the examples they are different and they should be the same and if you notice the second tcl the reports are very exaggerated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon Nov 19, 2018 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-11-16T02:54:58-04:00</updated>

		<published>2018-11-16T02:54:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107209#p107209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107209#p107209"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107209#p107209"><![CDATA[
Don't know why I complicated things so much when things can be a lot simpler.<div class="codebox"><p>Code: </p><pre><code>namespace eval clonescan {variable trigger "."bind pub m|o "${trigger}clone" [namespace current]::clonescanbind pub m|o "${trigger}clones" [namespace current]::clonescanproc checknick {nick} {set skip [list "S" "Q"]set test [expr {[lsearch -nocase $skip $nick] &gt; -1 ? "1" : "0"}]}proc clonescan {nick uhost hand chan text} {putquick "PRIVMSG $chan :Starting clonescan for $chan..."set start [clock clicks]foreach user [chanlist $chan] {if {[checknick $user] || [isbotnick $user]} continueset host [lindex [split [getchanhost $user $chan] @] 1]lappend clones($host) $user}set count 0foreach host [array names clones] {set len [llength $clones($host)]if {$len &gt; 1} {set nickList [join [join $clones($host)] ", "]puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList | Clones: $len"incr count $len}}set p(c) [expr {$len &gt; 0 ? [format %.1f [expr ($count.0 * 100.0) / $len.0]] : "0.0"}] set p(u) [expr (100.0 - $p(c))]set end [clock clicks]puthelp "PRIVMSG $chan :Clones: $count ($p(c)%) | Real users: [expr ($len - $count)] ($p(u)%) | Took: [expr ($end-$start)/1000.0]ms."}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 16, 2018 2:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-11-15T21:47:27-04:00</updated>

		<published>2018-11-15T21:47:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107207#p107207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107207#p107207"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107207#p107207"><![CDATA[
it does not work it still has failures..<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Thu Nov 15, 2018 9:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-02-06T11:12:22-04:00</updated>

		<published>2018-02-06T11:12:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106667#p106667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106667#p106667"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106667#p106667"><![CDATA[
now it works without giving failures.<div class="codebox"><p>Code: </p><pre><code>namespace eval clonescan {   variable trigger "."      bind pub m|o "${trigger}clone" [namespace current]::commands   bind pub m|o "${trigger}clones" [namespace current]::commands   proc checknick {nick} {   set skip [list "S" "Q"]   set test [expr {[lsearch -nocase $skip $nick] &gt; -1 ? "1" : "0"}]}   proc commands {nick uhost hand chan text} {  putquick "PRIVMSG $chan :Starting clonescan for $chan..."  set start [clock clicks]     set chanlist [chanlist $chan]  foreach user $chanlist {    if {[checknick $user]} continue lappend userList $user    }  set len [llength $userList]  set bh [lindex [split $::botname @] 1]    while {$len &gt; 0} {     set u1 [lindex [split $userList] 0]     set h1 [lindex [split [getchanhost $u1 $chan] @] 1]     set userList [lreplace $userList 0 0] foreach u2 $userList {     set h2 [lindex [split [getchanhost $u2 $chan] @] 1] if {[string equal -nocase $bh $h2]} continue  if {[string equal -nocase $h1 $h2]} {    if {[expr [lsearch -nocase [array names clones] $h1]] &gt; -1} {     lappend clones($h1) $u2} else {     lappend clones($h1) [list $u1 $u2]        }      }    }  incr len -1 }  set end [clock clicks]  set count 0 foreach host [array names clones] {  set nickList [join [join $clones($host)] ", "]  set len [llength $nickList]    puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList - Clones: $len"     incr $count $len } set p(c) [expr {$len &gt; 0 ? [format %.1f [expr ($count.0 * 100.0) / $len.0]] : "0.0"}]   set p(u) [expr (100.0 - $p(c))]   puthelp "PRIVMSG $chan :Clones: $count ($p(c)%) Real users: [expr ($len - $count)] ($p(u)%) - Took: [expr ($end-$start)/1000.0]ms."   }} </code></pre></div>caesar the corrected tcl only shows all zero until the second calculation puts it to zero and I do not think it's real..<br>something is wrong because it should not give zero if there are real users connected.<br><div class="codebox"><p>Code: </p><pre><code>[11:09] &lt;@sedition&gt; .clone[11:09] &lt;@JulieTh&gt; Starting clonescan for #tcls...[11:09] &lt;@JulieTh&gt; Clones: 0 (0.0%) Real users: 0 (100.0%) - Took: 0.0ms.</code></pre></div>the right thing would be like that:<div class="codebox"><p>Code: </p><pre><code>[11:10] &lt;@sedition&gt; .clone[11:10] &lt;@JulieTh&gt; Starting clonescan for #tcls...[11:10] &lt;@JulieTh&gt; Clones: 0 (0.0%) Real users: 3 (100.0%) - Took: 3.0ms.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Tue Feb 06, 2018 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-02-06T02:10:22-04:00</updated>

		<published>2018-02-06T02:10:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106665#p106665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106665#p106665"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106665#p106665"><![CDATA[
Ah. A little fix for that:<div class="codebox"><p>Code: </p><pre><code>   proc checknick {nick} {      set skip [list "S" "Q"]      if {[isbotnick $nick] || [expr [lsearch -nocase $skip $nick]] &gt; -1} return 0      return 1   }</code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>proc checknick {nick} {set skip [list "S" "Q"]set test [expr {[lsearch -nocase $skip $nick] &gt; -1 ? "1" : "0"}]}</code></pre></div>If the amount of clones is 0 then:<div class="codebox"><p>Code: </p><pre><code>set p(c) [format %.1f [expr ($count.0 * 100.0) / $len.0]] </code></pre></div>will give an error so to fix that as well replace this line with:<div class="codebox"><p>Code: </p><pre><code>set p(c) [expr {$len &gt; 0 ? [format %.1f [expr ($count.0 * 100.0) / $len.0]] : "0.0"}]</code></pre></div>If there's another user on the same host as the bot then the user and that user will show up as clones.<blockquote class="uncited"><div>&lt;cez&gt; .clones<br>&lt;@bot&gt; Starting clonescan for #channel...<br>&lt;@bot&gt; (x.x.x.x) Nick list: bot, cez - Clones: 2<br>&lt;@bot&gt; Clones: 0 (0.0%) Real users: 2 (100.0%) - Took: 0.088ms.</div></blockquote>If you want to "fix" this as well then under:<div class="codebox"><p>Code: </p><pre><code>set len [llength $userList]</code></pre></div>we add:<div class="codebox"><p>Code: </p><pre><code>set bh [lindex [split $::botname @] 1]</code></pre></div>and under:<div class="codebox"><p>Code: </p><pre><code>set h2 [lindex [split [getchanhost $u2 $chan] @] 1]</code></pre></div>we add:<div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase $bh $h2]} continue</code></pre></div>and then the result will be:<blockquote class="uncited"><div>&lt;cez&gt; .clones<br>&lt;@bot&gt; Starting clonescan for #channel...<br>&lt;@bot&gt; Clones: 0 (0.0%) Realusers: 0 (100.0%) - Took: 0.086ms.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Feb 06, 2018 2:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-02-05T21:43:11-04:00</updated>

		<published>2018-02-05T21:43:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106663#p106663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106663#p106663"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106663#p106663"><![CDATA[
try to use other variants but for the time being the error persists.<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon Feb 05, 2018 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2018-01-30T20:05:57-04:00</updated>

		<published>2018-01-30T20:05:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106645#p106645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106645#p106645"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106645#p106645"><![CDATA[
new error<div class="codebox"><p>Code: </p><pre><code>&lt;JulieTh&gt; [20:05:26] Tcl error [::clonescan::commands]: expected boolean value but got ""</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Tue Jan 30, 2018 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2018-01-30T19:58:50-04:00</updated>

		<published>2018-01-30T19:58:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106644#p106644</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106644#p106644"/>
		<title type="html"><![CDATA[help in clone scan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106644#p106644"><![CDATA[
Try replace<div class="codebox"><p>Code: </p><pre><code>if {[checknick $u1]} continue</code></pre></div>With<div class="codebox"><p>Code: </p><pre><code>if {[checknick $user]} continue</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Jan 30, 2018 7:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
