mIRC Home    About    Download    Register    News    Help

Print Thread
Onotice #265440 25/04/19 12:20 AM
Joined: Jul 2014
Posts: 121
Tiago Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jul 2014
Posts: 121
Hi
I've been looking for mIRC help and found that on TEXT event there is on NOTICE but there is no on ONOTICE.

I was wondering if there is any way to separate the onotice messages and to receive the messages sent by the channel operators in a separate window.

Thank you!


TECO
irc.PTirc.org (IRCop)
Re: Onotice [Re: Tiago] #265441 25/04/19 03:06 AM
Joined: Jan 2005
Posts: 187
Brax Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 187
You can use $target to check to whom the notice was sent.

For op notice check the presence of @ in $target
For chan notice check for #

Some networks allow voice notices as well in which case you would look for +

And as with other events you can prefix the event with ^ and halt the default output.


echo -a $signature
Re: Onotice [Re: Brax] #265444 25/04/19 03:02 PM
Joined: Jul 2014
Posts: 121
Tiago Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jul 2014
Posts: 121
Originally Posted By: Brax
You can use $target to check to whom the notice was sent.

For op notice check the presence of @ in $target
For chan notice check for #

Some networks allow voice notices as well in which case you would look for +

And as with other events you can prefix the event with ^ and halt the default output.

I did not understand your help.
You can explain to me how I'm going to use the $ target in the code.


TECO
irc.PTirc.org (IRCop)
Re: Onotice [Re: Tiago] #265445 25/04/19 03:39 PM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
He is saying that you have to use the on notice event.
$target is an identifier that returns the target for an event.

If someone talks in #mIRC, it's a privmsg to #mIRC that is sent, the on text event would trigger with $target returning #mIRC.

If someone sends a notice to #mIRC, it's a notice to #mIRC and on notice will trigger with $target set to #mIRC.

If someone sends a notice to @#mIRC, it's what you call a onotice, $target should be @#mIRC.

So inside your on notice event, check if the first character is a @:

if ($left($target,1) == @) { echo -s this is a onotice event }


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Onotice [Re: Wims] #265446 25/04/19 09:41 PM
Joined: Jul 2014
Posts: 121
Tiago Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jul 2014
Posts: 121
Originally Posted By: Wims
He is saying that you have to use the on notice event.
$target is an identifier that returns the target for an event.

If someone talks in #mIRC, it's a privmsg to #mIRC that is sent, the on text event would trigger with $target returning #mIRC.

If someone sends a notice to #mIRC, it's a notice to #mIRC and on notice will trigger with $target set to #mIRC.

If someone sends a notice to @#mIRC, it's what you call a onotice, $target should be @#mIRC.

So inside your on notice event, check if the first character is a @:

if ($left($target,1) == @) { echo -s this is a onotice event }

Wims
Thanks for the help and the explanation.
Hug!


TECO
irc.PTirc.org (IRCop)