How much power do you have?

By `Node_ on Mar 24, 2004

This is just a little snippet that will echo in an active window how many channels you are opped in, halfopped in and voiced in. Use /comchan to run the snippet.

alias comchan {
  %x = 0
  %y = $comchan($me,0)
  %oppedchans = 0
  %total = $comchan($me,0)
  goto inc
  :inc
  while (%x < %y) {
    inc %x 1
    if ($comchan($me,%x).op == $true) { inc %oppedchans 1 | goto inc }
    if ($comchan($me,%x).help == $true) { inc %halfopchans 1 | goto inc }
    if ($comchan($me,%x).voice == $true) { inc %voicechans 1 | goto inc }
  }
  echo 2 Opped %oppedchans $+ / $+ %total Halfopped %halfopchans $+ / $+ %total Voiced %voicechans $+ / $+ %total
  unset %x
  unset %y
  unset %oppedchans
  unset %halfopchans
  unset %voicechans
  unset %total
}

Comments

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.