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

	<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>2015-05-03T15:18:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sky6419]]></name></author>
		<updated>2015-05-03T15:18:34-04:00</updated>

		<published>2015-05-03T15:18:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104010#p104010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104010#p104010"/>
		<title type="html"><![CDATA[Darn clonescan not working correctly:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104010#p104010"><![CDATA[
what to say? simply beautiful! Perfect ! thanks!<br>SpiKe^^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12331">sky6419</a> — Sun May 03, 2015 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-03T13:06:45-04:00</updated>

		<published>2015-05-03T13:06:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104009#p104009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104009#p104009"/>
		<title type="html"><![CDATA[clonescan.tcl v1.1 (3May2015)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104009#p104009"><![CDATA[
Try this and see...<div class="codebox"><p>Code: </p><pre><code>##################################### clonescan.tcl v1.1 (3May2015) #############################################  Begin Settings  ######### set the channel name(s) to monitor for on-join clones.set clonescan(channel) "#mychannel1 #mychannel2 #mychannel3"# set the channel name to relay on-join clone info to.set clonescan(relaychan) "#staff" # set this to 0 to not strip ~ from idents# set this to 1 to strip ~ from identsset clonescan(strip) 0# set this to 0 to detect clones using username@host# set this to 1 to detect clones using just the hostset clonescan(justhost) 1# set the number of other clones to trigger on.#  1 = the nick joining has 1 or more other clones in the channel.#      note: this will trigger every time someone rejoins#            before their ghost connection times out!#  2 = the nick joining has 2 or more other clones in the channel.#      note: or set to any number greater than zero.set clonescan(clones) 1#########  End Settings  #########set clonescan(channel) [split [strlwr $clonescan(channel)]]if {![string is digit -strict $clonescan(clones)] || $clonescan(clones)&lt;"1"} {  set clonescan(clones) 1}bind join - * onjoin:clonescan proc onjoin:clonescan {nk uh hn ch} {   global clonescan   if {[lsearch -exact $clonescan(channel) [strlwr $ch]] &gt; -1} {     if {$clonescan(strip)} {      set uh [string trimleft $uh "~"]     }     if {$clonescan(justhost)} {       set mask [lindex [split $uh @] 1]    } else {  set mask $uh  }    set list [list]     foreach user [chanlist $ch] {       set host [getchanhost $user $ch]      if {$clonescan(justhost)} {         set host [lindex [split $host @] 1]      } elseif {$clonescan(strip)} {         set host [string trimleft $host "~"]      }       if {[string equal -nocase $mask $host]} {         lappend list $user      }     }     if {[set num [llength $list]] &gt;= $clonescan(clones)} {       set txt "«« \[$ch\]$nk $uh is a clone! - [number_to_number $num]"      set nks "( [join $list ", "] )"      if {$num == 1} {        set txt "$txt other nick $nks is the same person! »»"      } else { set txt "$txt other nicks $nks are the same person! »»" }      putmsg $clonescan(relaychan) $txt    }   } }putlog "«« clonescan.tcl v1.1 loaded. »»"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun May 03, 2015 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sky6419]]></name></author>
		<updated>2015-05-03T07:21:04-04:00</updated>

		<published>2015-05-03T07:21:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104006#p104006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104006#p104006"/>
		<title type="html"><![CDATA[Darn clonescan not working correctly:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104006#p104006"><![CDATA[
(set clonescan(strip) 0; #set this to 1 to strip ~ from idents - set clonescan(justhost) 1) with these settings correctly identifies <br>example --&gt;SimosNap-example.ip00.fastwebnet.it-.<br>I'd like that when it enters the clone also wrote the ident last entered.<br>--&gt;<a href="mailto:ident@SimosNap-example.ip00.fastwebnet.it">ident@SimosNap-example.ip00.fastwebnet.it</a><br>if {[llength $list] &gt; 1} &lt;- This should display the number of clones ? It seems not working<br>should add the code? [expr]<br>(Thanks for your patience)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12331">sky6419</a> — Sun May 03, 2015 7:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-02T18:30:48-04:00</updated>

		<published>2015-05-02T18:30:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103998#p103998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103998#p103998"/>
		<title type="html"><![CDATA[Darn clonescan not working correctly:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103998#p103998"><![CDATA[
Dowhat¿<br><br>Explain what it is doing and what you think it should be doing plz.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat May 02, 2015 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sky6419]]></name></author>
		<updated>2015-05-02T17:52:09-04:00</updated>

		<published>2015-05-02T17:52:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103997#p103997</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103997#p103997"/>
		<title type="html"><![CDATA[clonescan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103997#p103997"><![CDATA[
The script works but the report does not write the ident last clone.<br>Mask/Host: SimosNap-025E6I.49-151.net24.it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12331">sky6419</a> — Sat May 02, 2015 5:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-03T11:10:41-04:00</updated>

		<published>2015-05-02T11:52:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103992#p103992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103992#p103992"/>
		<title type="html"><![CDATA[Darn clonescan not working correctly:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103992#p103992"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set clonescan(channel) [list #mychannel1 #mychannel2 #mychannel3]; # put the channel name(s) here in lowercase. set clonescan(relaychan) "#staff" set clonescan(strip) 0; # set this to 1 to strip ~ from idents # set this to 0 to detect clones using username@host# set this to 1 to detect clones using just the hostset clonescan(justhost) 1bind join - * onjoin:clonescan proc onjoin:clonescan {nick uhost hand chan} {     global clonescan     if {[lsearch -exact $clonescan(channel) [string tolower $chan]] &gt; -1} {         if {$clonescan(justhost)} {             set uhost [lindex [split $uhost @] 1]        } elseif {$clonescan(strip)} {             set uhost [string trimleft $uhost "~"]         }         set list [list]         foreach user [chanlist $chan] {             set host [getchanhost $user $chan]            if {$clonescan(justhost)} {                 set host [lindex [split $host @] 1]            } elseif {$clonescan(strip)} {                 set host [string trimleft $host "~"]            }             if {[string equal -nocase $uhost $host]} {                 lappend list $user            }         }         if {[llength $list] &gt; 1} {             putserv "PRIVMSG $clonescan(relaychan) :«« $nick is a clone! - The nicks ( [join $list ", "] ) are the same person! - Mask/Host: $uhost »»"         }     } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat May 02, 2015 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sky6419]]></name></author>
		<updated>2015-05-02T07:08:14-04:00</updated>

		<published>2015-05-02T07:08:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103989#p103989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103989#p103989"/>
		<title type="html"><![CDATA[clonescan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103989#p103989"><![CDATA[
This script detects clones in channels and writes the report to a default channel . The problem is : detect clones with ident and IP equal.<br>If the IP is the same but the ident is different it does not detect the clone .<br>Example   ~<a href="mailto:BLaKFLaG@SimosNap-025E6I.49-151.net24.it">BLaKFLaG@SimosNap-025E6I.49-151.net24.it</a> --  ~<a href="mailto:J2OLpZRLf@SimosNap-025E6I.49-151.net24.it">J2OLpZRLf@SimosNap-025E6I.49-151.net24.it</a> is not detected as a clone. I'm sorry for my english.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12331">sky6419</a> — Sat May 02, 2015 7:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-01T21:39:19-04:00</updated>

		<published>2015-05-01T21:39:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103985#p103985</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103985#p103985"/>
		<title type="html"><![CDATA[Darn clonescan not working correctly:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103985#p103985"><![CDATA[
Explain more, and give examples plz.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri May 01, 2015 9:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sky6419]]></name></author>
		<updated>2015-05-01T15:44:12-04:00</updated>

		<published>2015-05-01T15:44:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103983#p103983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103983#p103983"/>
		<title type="html"><![CDATA[Darn clonescan not working correctly:)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103983#p103983"><![CDATA[
I would still have a question about the script recognizes the clones with ident and ip . changing ident does not recognize the clone as you can change ?<div class="codebox"><p>Code: </p><pre><code>set clonescan(channel) [list #mychannel1 #mychannel2 #mychannel3]; # put the channel name(s) here in lowercase.set clonescan(relaychan) "#staff"set clonescan(strip) 0; # set this to 1 to strip ~ from identsbind join - * onjoin:clonescanproc onjoin:clonescan {nick uhost hand chan} {    global clonescan    if {[lsearch -exact $clonescan(channel) [string tolower $chan]]} {           if {$clonescan(strip)} {            set uhost [string trimleft $uhost "~"]        }        set list [list]               foreach user [chanlist $chan] {                   if {$clonescan(strip)} {                set host [string trimleft [getchanhost $user $chan] "~"];            } else {                set host [getchanhost $user $chan];            }                       if {[string equal -nocase $uhost $host]} {                lappend list $user;            }        }        if {[llength $list] &gt; 1} {            putserv "PRIVMSG $clonescan(relaychan) :«« $nick is a clone! - The nicks ( [join $list ", "] ) are the same person! - Mask/Host: $uhost »»"        }    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12331">sky6419</a> — Fri May 01, 2015 3:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
