/omsg

By weaver on Feb 19, 2008

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
}

Comments

Sign in to comment.
Korvin   -  Feb 19, 2008

o nvm

 Respond  
Korvin   -  Feb 19, 2008

you forgot inc.

 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.