mIRC Homepage
Posted By: Stealth on onotice - 09/01/04 11:13 PM
It would be nice if there was an on onotice to detect op notices in a chan:

ON *:ONOTICE:#:{ }

It would use $nick $chan and $1- respectivly.

The best way that I have found to do this currently, is with this:

on *:NOTICE:*:#:{ if ($nick isop $chan) { <commands> } }

Comments will be appriciated!
Posted By: Raccoon Re: on onotice - 10/01/04 10:55 AM
I believe this is what you're looking for:

On *:NOTICE:*:#: {
if ( $target == @$chan ) echo -a Op Notice
if ( $target == +$chan ) echo -a Voice Notice
if ( $target == @+ $+ $chan ) echo -a Op & Voice Notice (same as Voice Notice, but some networks display it differently. I think Ops can always see Voice Notices).
}


There are a variety of methods you can use, but you're basically checking $target for the @ prefix. Unfortunately networks vary so dramatically on how prefixes are displayed and what prefixes are supported that it's becoming very difficult to acknowledge a standard.

- Raccoon
Posted By: qwerty Re: on onotice - 10/01/04 11:52 PM
@$chan and +$chan don't work, you need $+ there too.
Posted By: Raccoon Re: on onotice - 11/01/04 03:12 AM
Ah, my mistake. I guess I'm losing my touch.
I think I evaluated @$chan with TAB and assumed it worked. crazy

* Raccoon retires at the ripe old age of 25.
Posted By: Stealth Re: on onotice - 12/01/04 05:59 AM
Thank you all, i will keep this in mind the next time i need it. grin
© mIRC Discussion Forums