xClone Scanner

By Aurora801 on Sep 26, 2011

Scans the channel for clones upon a user joining.
Also able to scan at will using /xscan [nick]
Also has menu options.

;---[xClone Scanner]-----------|
;---[Version 2.0 Beta 1]-------|
;---[Scripted by Aurora]-------|
;---[Enjoy.]-------------------|
;______________________________|
;---[The Scanner!]---
;--[Aliases]--
alias -l xecho { echo -a 12/2/15-12[15C14lone 15S14canner 9(15 $+ $1 $+ 9) $2- $+ 12] }
alias -l cecho { echo $1 12/2/15-12[15C14lone 15S14canner 9(15 $+ $1 $+ 9) $2- $+ 12] }
alias xscan {
  tokenize 32 $address($1,4) $active $1
  var %count = $ialchan($1,$2,0)
  if (%count > 1) {
    var %check = %count
    while (%check) {
      var %clones = %clones $ialchan($1,$2,%check).nick
      dec %check
    }
    xecho $2 15 $+ $3 Clones0::4 %clones
  }
  else { xecho $2 $3 Has No Clones. }
}
;--[Events]--
on *:JOIN:#: {
  if (($nick == $me) || (*.xxx.* iswm $address($nick,4))) { halt }
  var %host = $address($nick,4)
  var %count = $ialchan(%host,$chan,0)
  if (%count > 1) {
    var %check = %count
    while (%check) {
      var %clones = %clones $ialchan(%host,$chan,%check).nick
      dec %check
    }
    cecho $chan 15 $+ $nick Clones0::4 %clones
  }
}

menu channel,nicklist {
  -
  -[xClone]-
  .-[Scanner]-
  ..-[Scan Random user]-:/xScan $randnick($active)
  ..-[Scan $1 $+ ]-:/xScan $1
  ..-
  ..-[Scan Entire Channel ( $+ $chan $+ )]-: {
    var %nc = $nick($chan,0)
    while (%nc) {
      xscan $nick($chan,%nc)
      dec %nc
    }
  }
  .-
  .-[Info]-
  ..-[xClone v2.0 Beta 1]-
  ..-[Scripted by Aurora]-
  ..-
  ..-[Advertise]-:/me is using 12/2/15-12[4x15C14lone 15S14canner 14v2.0 Beta 1 by Aurora12]
  -
}

Comments

Sign in to comment.
Frenetic   -  Sep 30, 2011

Lol Jethro, I didn't want to show him a way todo it in-case he already knew, thus taking offence from me thinking he's stupid, but I shall keep that in mind next time. :)

 Respond  
Jordyk19   -  Sep 30, 2011

Doe's what it needs to do 9/10.

 Respond  
Jethro   -  Sep 30, 2011

Frenetic, when you suggest that a snippet can be shortened further, be sure to walk the walk. Some oversensitive people may take it as an offense, thinking you label them as being stupid. :p I've met one so far, and the ordeal left me utterly in bad taste.

But you jotted down "Nice job," so that should balance out. :P

Aurora801  -  Feb 16, 2013

Thank you for the defense, Jethro. I haven't gotten many people being nice on some of my scripts. :-)

Sign in to comment

Frenetic   -  Sep 30, 2011

You could shorten this a lot. But nice job.

Aurora801  -  Feb 16, 2013

I have updated this script a bit since then, and it has actually gotten longer, but I've taken out the extra spaces and combined some of the sections. Thank you for the advice. greatly appreciated. I wasn't aware there was a way to shorten it at the time. :-)

Sign in to comment

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.