mIRC Home    About    Download    Register    News    Help

Print Thread
on onotice #67241
09/01/04 11:13 PM
09/01/04 11:13 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
Stealth  Offline OP
Vogon poet
S

Joined: Sep 2003
Posts: 149
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!


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
Re: on onotice #67242
10/01/04 10:55 AM
10/01/04 10:55 AM
Joined: Feb 2003
Posts: 2,606
Raccoon Offline
Hoopy frood
Raccoon  Offline
Hoopy frood

Joined: Feb 2003
Posts: 2,606
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: on onotice #67243
10/01/04 11:52 PM
10/01/04 11:52 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
qwerty  Offline
Hoopy frood
Q

Joined: Jan 2003
Posts: 2,523
@$chan and +$chan don't work, you need $+ there too.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: on onotice #67244
11/01/04 03:12 AM
11/01/04 03:12 AM
Joined: Feb 2003
Posts: 2,606
Raccoon Offline
Hoopy frood
Raccoon  Offline
Hoopy frood

Joined: Feb 2003
Posts: 2,606
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.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: on onotice #67245
12/01/04 05:59 AM
12/01/04 05:59 AM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
Stealth  Offline OP
Vogon poet
S

Joined: Sep 2003
Posts: 149
Thank you all, i will keep this in mind the next time i need it. grin


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org