Clonescanner

By juhapuha on Jul 09, 2008

This snippet will scan clones for active channel and it will display the result in @Clonescan window.
Usage: /Clonescan

alias clonescan {
  if ($chan($chan).ial != $true) { echo 2 -a * /clonescan - IAL not updated. Type /who $chan }
  else {
    var %ialchan $chan
    var %i = 1
    window -a @Clonescanner
    echo -a Clonescanner by shitbreak - Scanning clones for channel %ialchan $+  
    while (%i <= $ialchan(*,%ialchan,0)) {
      if ($ialchan($+(*!*@,$gettok($ialchan(*,%ialchan,%i),2,64)),$chan,0) > 1) && (!%clone. [ $+ [ $+(*!*@,$gettok($ialchan(*,%ialchan,%i),2,64)) ] ]) {
        inc %cloneid
        var %clone. $+ $+(*!*@,$gettok($ialchan(*,%ialchan,%i),2,64)) 1
        echo -a Clonegroup: ID: ( $+ %cloneid $+ ) 4 $+ $+(*!*@,$gettok($ialchan(*,%ialchan,%i),2,64)) $+   $+  $ialchan($+(*!*@,$gettok($ialchan(*,%ialchan,%i),2,64)),%ialchan,0) $+  users
        var %x = 1
        while (%x <= $ialchan($+(*!*@,$gettok($ialchan(*,%ialchan,%i),2,64)),%ialchan,0)) {
          echo -a %x $+ ) $ialchan($+(*!*@,$gettok($ialchan(*,%ialchan,%i),2,64)),%ialchan,%x).nick
          inc %clones
          inc %x
        }
        echo -a 
      }
      inc %i
    }
    echo -a Total number of users   $+ $ialchan(*,%ialchan,0) $+ 
    echo -a Total number of clones  $+ %clones $+ 
    echo -a Total percent of clones  $+ $round($calc($calc(%clones / $ialchan(*,%ialchan,0)) * 100),2) $+  $+ %
    unset %cloneid %clones
  }
}

Comments

Sign in to comment.
DaNzO   -  Jul 21, 2008

Good eye though, Mountiandew :)

Not a bad script juhapuha.

 Respond  
juhapuha   -  Jul 11, 2008

=)

 Respond  
guest598594   -  Jul 09, 2008

Nah, it\'s cool. I figured it was your IRC name or something when I saw it in all your other scripts :)

 Respond  
juhapuha   -  Jul 09, 2008

oh noes >_< i use the nick in irc - if you think it\'s ripped you can connect to quakenet and /Msg $me :)

 Respond  
^Alexis^   -  Jul 09, 2008

echo -a Clonescanner by shitbreak - Scanning clones for channel %ialchan $+

 Respond  
guest598594   -  Jul 09, 2008

echo -a Clonescanner by shitbreak - Scanning clones for channel %ialchan $+

Ripped?

(The filter censored the name)

Edit: Eh, I guess not. I noticed that all your other scripts say that too, it\'s probably your IRC name or something...

 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.