This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

help in clone scan tcl

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Nick list: Guest37056, supr | Clones: 2
So, you want to count only one of those as clone and the other as a real user?

Replace:

Code: Select all

incr count $len 
with:

Code: Select all

incr count [expr $len - 1]
then and the result should be: Clones: 1 (33.3%) | Real users: 2 (66.7%)
Once the game is over, the king and the pawn go back in the same box.
User avatar
Arnold_X-P
Master
Posts: 226
Joined: Mon Oct 30, 2006 12:19 am
Location: DALnet - Trinidad - Beni - Bolivia
Contact:

Post by Arnold_X-P »

replace what you asked me but the report is not correct
Replace:

Code: Select all

incr count $len 
with:

Code: Select all

incr count [expr $len - 1]
that is, if there is a real user and the other is a clone, then it would be like that:
suppose that 4 are the nicknames of which 3 are real and one is clone
This is in the channel where I am using the tcl
the report that gives the old tcl is the correct
old tcl

Code: Select all

[01:59] <@Arnold_X-P> .clones
[01:59] <@xsedition> Starting clonescan for #lapaz ...
[01:59] <@xsedition> (localhost) NickClones: sicario, supr - Clones: 1
[01:59] <@xsedition> Clones: 1 (25.0%) Real users: 3 (75.0%) - Took: 0.0ms.
new tcl

Code: Select all

[02:01] <@xsedition> Starting clonescan for #lapaz...
[02:01] <@xsedition> (localhost) Nick list: sicario, supr | Clones: 2
[02:01] <@xsedition> Clones: 1 (33.3%) | Real users: 2 (66.7%) | Took: 0.0ms.
only this part is the correct thing that the report gives the old tcl and that is what the new tcl needs to perfect
[01:59] <@xsedition> Clones: 1 (25.0%) Real users: 3 (75.0%) - Took: 0.0ms.
.:an ideal world:. www.geocities.ws/chateo/yo.htm
my programming place /server ix.scay.net:7005
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Change:

Code: Select all

puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList - Clones: $len" 
to:

Code: Select all

puthelp "PRIVMSG $chan :\($host\) Nick list: $nickList - Clones: [expr $len - 1]" 
and the result will be:
[02:01] <@xsedition> Starting clonescan for #lapaz...
[02:01] <@xsedition> (localhost) Nick list: sicario, supr | Clones: 1
[02:01] <@xsedition> Clones: 1 (33.3%) | Real users: 2 (66.7%) | Took: 0.0ms.
Once the game is over, the king and the pawn go back in the same box.
Post Reply