Jethro commented on a Page, Clones detector  -  Mar 30, 2010

lol :p Well, if you really want to shrink WorldDMT's script a tiny bit further, you can do this:

menu status,nicklist,menubar {
  -
  WorldDMT Clones Detector V1.0 $iif(%stat.wclone,-[ ON ]-,-[ OFF ]-)
  .$iif(%stat.wclone,Dis,En) $+ able it:set %stat.wclone $iif(%stat.wclone,0,1)
  -
}
on *:join:#:{
  goto $iif($nick = $me,x,y) | :x | set %/who $+ # 1 | who # | halt | :y
  if %stat.wclone && $ialchan($wildsite,#,0) > 1 {
    echo # 7- clones detected $+($chr(3),4,$chr(91),$chr(3)) $regsubex($str(x,$v1),/x/g,$&
      $+($chr(3),14,$ialchan($wildsite,#,\n).nick,$chr(3),$chr(32))) $+($chr(3),4,$chr(93),$chr(3)) | halt
  }
}
raw *:*:{
  if (($numeric = 352) && ($($+(%,/who,$2),2))) haltdef
  elseif ($numeric = 315) && ($($+(%,/who,$2),2)) unset %/who $+ $2 | haltdef
}

I have changed the join event a little, as well as a typo, which to be in French, and made the enable and disable switch a bit smaller. But it's not that much of a difference in size, just a few bytes off. :P

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.