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!
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
@$chan and +$chan don't work, you need $+ there too.
Ah, my mistake. I guess I'm losing my touch.
I think I evaluated @$chan with TAB and assumed it worked.
* Raccoon retires at the ripe old age of 25.
Thank you all, i will keep this in mind the next time i need it.