Operator Message.
Posted by mklaif
Saturday, April 28, 2007
Description: Message a channel operator.  (Does not include ChanServ.)

Written by: mklaif
Date: 4/28/07

alias opmsg {
  var %oppers = 1
  while (%oppers <= $nick($active,0)) {
    if ($nick($active,%oppers) != ChanServ) {
      query $nick($active,%oppers) $1-
    }
    inc %oppers
  }
}

Usage: /opmsg <text>
Location: Remote

Instead of using a notice with /onotice, you can use this to PM them.
Subject line
Posted by mklaif
Saturday, April 28, 2007 03:04pm PDT
Forgot to add a part of it.

alias opmsg {
  var %oppers = 1
  while (%oppers <= $nick($active,0)) {
    if ($nick($active,%oppers) != ChanServ && $nick($active,%oppers) isop #) {
      query $nick($active,%oppers) $1-
    }
    inc %oppers
  }
}

Forgot to check if the nick was an operator.
Bad
Posted by Swoop
Sunday, April 29, 2007 10:59am PDT
If there are enough ops, you'll flood yourself out.
$nick
Posted by squirk
Monday, April 30, 2007 04:28pm PDT
a better way about this would be $nick(#,%var,o) which is just ops, rather than checking if the person is op and looping through more names unnecessarily, and swoop is right about possible flood
or just
Posted by leaX
Thursday, December 13, 2007 05:51am PST
or just /omsg
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world