mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
I have a custom opstalk displayer and I jsut cant figure out how to capture an /omsg. it comes in as a different type of event. I KNOW ON NOTICE wont work. How do I capture a PRVMSG? I checked the help file and it shows nothing (that I saw)


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
on TEXT captures a PRIVMSG
on *:TEXT:*:#: channel PRIVMSG
on TEXT captures a PRIVMSG
on *:TEXT:*:?: private PRIVMSG

A message sent with /omsg is no different to a normal private message.

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
kewl, awesome thanks


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
When it's an /omsg, $target will begin with a @. This is also true for an on notice that captures /onotices.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That wasn't true when I just tested it.

/omsg just sent a message to a comma seperated list of nicknames.

/msg @#channel message behaved how you described.

Edit: /onotice also behaved how you said it should

Last edited by Collective; 07/04/04 04:10 AM.
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
a simple if ($target == @ $+ #) would work tho smile


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yep, you're right. I thought /omsg has always messaged @#channel, but it was my custom alias. Thanks for the correction laugh


Link Copied to Clipboard