link: http://www.mircscripts.org/comments.php?cid=3923
This tries to mimic mIRC's /omsg where one can msg all ops in the channel. mIRC's default needs you to be opped to use the /omsg function which i sometimes find annoying. This tiny snippet allows regular users to access the /omsg function.
to prempt all the flamers and people who use the forum for an ego boost, yeah i know it can be done in one regex and how useless it is.
usage:
/omsg
/omsg <#channel>
alias omsg {
if (!$1) { echo $color(info) -a * /omsg: invalid parameters | return }
var %i = 1,%chan = $iif($1 ischan,$1,$active),%msg = $iif($1 !ischan,$1-,$2-)
while ($nick(%chan,%i,o)) { .msg $v1 %msg | inc %i }
echo -at $+($chr(45),$chr(62)) ops $+(%chan,:) %msg
}