mIRC Homepage
Posted By: leonessa Message similar to /onotice - 23/08/04 09:24 PM
Fairly new to mIRC so please bear with me. smile

I heard of a command or script similar to the /onotice but instead of sending a notice to the ops in the current channel, it sent a note to everyone who had a + (voiced).

I'm looking for a simple command that would do that.

Thank you in advance!

leonessa
Posted By: Mentality Re: Message similar to /onotice - 23/08/04 09:28 PM
/notice +#channel messageHERE

Simple aliases can be made for messages like this. As an example, here's a /vn alias (voice notice):

vn notice + $+ $chan [Voices] $1-

If you add this to the Aliases section (ALT+D) on a new line, you can just type /vn messageHERE to send a voice notice. The [Voices] bit is just for decoratio so it sends the text '[Voices] <your message>' to the voices. It can be removed or edited to your liking.

Usually, /onotice can only be done if you are opped. With /notice you do not need to be opped. You can also do /notice @#channel for the channel ops, and /notice @+#channel for the voice AND ops.

Regards,
Posted By: dr_Eamer Re: Message similar to /onotice - 23/08/04 09:55 PM
This won't work on some servers!
mIRC's onotice command sends a mass notice and NOT notice @#channel!

Something like this will work everywhere ( I think and I hope... ):
Code:
alias vnotice {
  var %i = 1 , %nicks , %n = $nick($chan,1,v) , %maxtargets = 15
  while ( %n ) { 
    if ( %i % %maxtargets == 0 ) { 
      notice %nicks $1-
      %nicks = %n
    }
    else {
      %nicks = %nicks $+ , $+ %n
    }
    inc %i 
    %n = $nick($chan,%i,v)
  } 
  notice %nicks $1-
}  


Usage: /vnotice <text>

%maxtargets set to 15 is the maximum number of users you can mass notice on a server. The server I usually login (CR) allows 17!
The alias sends one command per %maxtargets voiced users. Too many users may flood you out of the server!

(I don't know if mIRC's onotice checks these things out cause I've never onoticed that many ops with mIRC's command...)
Posted By: Ddan Re: Message similar to /onotice - 24/08/04 11:30 PM
Hmm sorry to disagree with you chap but I had to check up one what you said about mIRC sending a mass notice, not /notice @#channel.

-> efnet.demon.co.uk NOTICE @#channel :testing

type /debug @debug and send an /onotice, you'll see what i mean wink
Posted By: dr_Eamer Re: Message similar to /onotice - 25/08/04 11:50 AM
I've already done that more than once before posting what I said...
-> chat.mad.gr NOTICE nick1,nick2,nick3 :test

chat.mad.gr is a ConferenceRoom server although I don't think the command depends on the server...
Are you sure you don't have an alias that overrides the default action?
Check $isalias(onotice) and also try /!onotice ...
If not then I don't know what is going on...

I'm on the newest mIRC version although I remember trying it in older versions too...
Posted By: Online Re: Message similar to /onotice - 25/08/04 01:09 PM
Quote:
although I don't think the command depends on the server...


It is. mIRC has to adjust the command output depending on the server software, because many servers are not smart enough to handle @#channel messages.

Code:
       |           |          |          | undernet  |          
       |           |          |          | quakenet  |          
       |  dalnet   |  efnet   |  ircnet  | gamesurge |          
       | (bahamut) | (hybrid) |          |   (ircu)  | (unreal) 
       |           |          |          |           |          
       |           |          |          |           |          
notice |    @+#    |    @#    |    -     |     @#    |   @+#    
       |           |          |          |           |          
 msg   |    @+#    |    -     |    -     |     -     |   @+#    
       |           |          |          |           |          
Posted By: dr_Eamer Re: Message similar to /onotice - 25/08/04 01:18 PM
Cool! I didn't expect that!
CR 1.8.4 handles @# (but ircnet perhaps not?)

Anyway that solves things... Thanx
Posted By: Online Re: Message similar to /onotice - 25/08/04 01:36 PM
True, for some reason I thought IRCNet runs CR, but apparently they've got their own software.
© mIRC Discussion Forums