mIRC Home    About    Download    Register    News    Help

Print Thread
#35956 12/07/03 08:14 PM
Joined: Jun 2003
Posts: 11
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jun 2003
Posts: 11
Hiyas All,

Can anyone help me with a decent script to catch clones ?
Maybe comparing the ial lists for ip addresses or something ?

Either for when i first join a room (to scan for clones) or when i am opped and anyone else joins the channel.

Many Thanks

#35957 12/07/03 08:18 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Google is your friend!

Did some searching and I found a little tutorial on how to make one and it also includes the code for how to do it. http://www.mirc-egg.net/oldsite/faq/faq-scr2.htm#clone

#35958 12/07/03 08:23 PM
Joined: Jun 2003
Posts: 11
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jun 2003
Posts: 11
lol it's a coincedence you came up with that page because thats what i tried first but for some reason i couldnt get it to work.

I am right in saying a clone is a someoone with an identical hostname but using a different nickname aren't i ?

Because thats how i was testing it, i got someone with the same mask but using diff names and the clone catcher didn't seem to pick up on it.

If anyone has tried this and it works for you please let me know because it emans the mistake must be mine.

#35959 12/07/03 08:25 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
My guess is the IAL isn't filled which means you have to do a /who #channel after you join the channel to fill the IAL.

#35960 12/07/03 08:56 PM
Joined: Jun 2003
Posts: 11
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jun 2003
Posts: 11
still no joy

I am making sure ial is on with the /ial on command
and doing a /who #chan

but still no luck
Any experts out there with advice ?
or has anyone this script worked for anyone and can point out my mistake to me blush)

#35961 12/07/03 09:36 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
on 1:JOIN:#: {
  if ($nick != $me) {
    var %i = 1
    while ($ial($address($nick, 2), %i)) {
      var %add = $ifmatch
      if (%add != $address($nick, 5)) var %match = %match %add
      /inc %i
    }
    if (%match) /echo -ati2 Clones Found ( $+ $nick $+ ): %match
  }
}


* Join: ChanSys(*!*@mymask.com)
Clone Found (ChanSys): KingTomato!*ingtomato@mymask.com


-KingTomato
#35962 12/07/03 11:43 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
That has problems though, it detects clones "across channels" Meaning
User1!blah@blah.com joins #test
User2!blah@test.com joines #test2
User2 has been kicked from #test2 (Cloning)

Thats why the other script used $ialchan instead.

#35963 18/07/03 07:50 PM
Joined: Dec 2002
Posts: 29
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 29
/operserv clones :tongue:


--
http://www.globirc.net
irc.globirc.net
#35964 19/07/03 08:20 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Wouldn't that only work if the user is registered to operserv?


-KingTomato

Link Copied to Clipboard