mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
how can i create a remote to the clones of a nick


Joined: Dec 2002
Posts: 208
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
your question is extreamly unclear

remotes respond to an event in some way ...

maybe you mean u want to detect clones ?

Code:
on 1:JOIN:*: {
  if ($ialchan($mask($fulladdress,2),$chan,0) > 1) { echo $chan *** NOTICE: $nick has $ifmatch clones on this channel !! }
}


make sure u have /ial on and note that this will only work when you have an updated IAL for the chanel, if its a channel you sit in alot then no worries except right after you join perhaps .. as not everyone in the channel will be on your IAL (Internal Address List) instantly. (you could make it so they were by doing /who $chan on join for yourself) but it perhaps wouldnt be nessicary .. all depends on what exactly your looking to do

to kick clones checking your op status and addig a kick command is all thats required to the above remote.

hope this is what you ment

Cobra^

Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
I testet somthing whit the clone "alert"

Code:

if ($ialchan($mask($fulladdress,2),$chan,0) > 1) {
    if $chan == $active {
      echo.grey $nick has $ifmatch clones on this channel! 
    }
    else {
      echo.grey $nick has $ifmatch clones on $chan $+ ! 
    }
  }
 


but on the else this echo came:
[02:19:29] multiclon has clones on #sus!
it dont use the $ifmatch ?

Joined: Dec 2002
Posts: 208
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
$ifmatch returns the first comparison value in the conditional its under

so if (v1 operator v2) { echo -a * $ifmatch } would echo v1
however else doesnt have a direct conditional, its negated and rather that cause confuseion $ifmatch is simply null

if that all just confuses u more just ignore it, this will work for u

Code:
on 1:JOIN:*: {
  if ($ialchan($mask($fulladdress,2),$chan,0) > 1) {
    var %chan = $iif($chan == $active, this channel, $chan)
    echo $chan *** NOTICE: $nick has $ifmatch clones on %chan !!
  }
}

Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
its work fine but i want

sime liket hat


Verdugo2000 join #chaco-corrientes

Verdugo2000 has 3 clones (alicia,matrix,stuff)
show the 3 clones nick thnx

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:
on 1:JOIN:#: {
  if ($ialchan($wildsite,$chan,0) > 1) {
    var %s, %i = 1, %clones = $ifmatch - 1
    while ($ialchan($wildsite,$chan,%i).nick) {
      if ($ifmatch != $nick) %s = $addtok(%s,$ifmatch,44)
      inc %i
    }
    echo $color(ctcp) -bflirt $chan ***NOTICE: $nick has $numtok(%s,44) $&
      $iif($numtok(%s,44) == 1,clone,clones) ( $+ %s $+ )
  }
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
** CloNes [carlosbi,chirola,dfbol,HALIDONB,manuel,neko,Rubio21] A999-user.ACqGqJO.RedHispana.VRT [7]

i want something like that :O)

thnx

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
How you choose to format it is completely up to you. smile

%s contains the list of clone nicks (minus the joining nick).
$numtok(%s,44) contains the number of clones.
$site contains everything after the @ in their address

You have already changed your mind from just wanting a simple clone detector to requesting the formatting be done for you. You were given two similar examples; now you've changed your mind again. We are not here to write your script FOR you, but we will answer your questions when you run into problems.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard