mIRC Homepage
Posted By: sparkster messages to voiced nicks only - 09/03/06 06:47 PM
Is there a way to send a message (via /notice or otherwise) to voiced nicks only? Similar to the /onotice for OPS only.
Posted By: NeUtRoN_StaR Re: messages to voiced nicks only - 09/03/06 07:38 PM
as far as i know there isnt
but you could certainly make one


im assuming this is for people in the same channel as you
Code:
alias vnotice {
  var %tnum = $nick($chan,0)
  var %op = 0
  while (%op <= %tnum) {
    inc %op
    if ($nick($chan,%op) isvoice $chan) {
      notice $nick($chan,%op) $$1-
    }
  }
}

Posted By: hixxy Re: messages to voiced nicks only - 09/03/06 07:39 PM
/notice +#channel <message> or /wallvoices #channel <message>
Posted By: sparkster Re: messages to voiced nicks only - 10/03/06 04:53 PM
Thanks hixxy - the first one works although it does send to OPs as well. The /wallvoices gives an "unknown command". Is it only available in new versions?
Posted By: sparkster Re: messages to voiced nicks only - 10/03/06 04:56 PM
I like that little script. Thanks
Posted By: hixxy Re: messages to voiced nicks only - 10/03/06 05:02 PM
On most networks you can specify a target prefix before the channel name; /notice @#channel (send to ops), /notice +#channel (send to voices), /notice @+#channel (send to ops and voices), but some don't have such a feature and have a different command instead.

/wallvoices is an Undernet command. I'm not sure if (m)any other networks have it.
© mIRC Discussion Forums