mIRC Homepage
Posted By: landonsandor how would I capture an /omsg? - 07/04/04 03:46 AM
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)
Posted By: Collective Re: how would I capture an /omsg? - 07/04/04 03:52 AM
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.
Posted By: landonsandor Re: how would I capture an /omsg? - 07/04/04 03:59 AM
kewl, awesome thanks
Posted By: Online Re: how would I capture an /omsg? - 07/04/04 04:07 AM
When it's an /omsg, $target will begin with a @. This is also true for an on notice that captures /onotices.
Posted By: Collective Re: how would I capture an /omsg? - 07/04/04 04:09 AM
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
Posted By: landonsandor Re: how would I capture an /omsg? - 07/04/04 04:59 AM
a simple if ($target == @ $+ #) would work tho smile
Posted By: Online Re: how would I capture an /omsg? - 07/04/04 11:42 PM
Yep, you're right. I thought /omsg has always messaged @#channel, but it was my custom alias. Thanks for the correction laugh
© mIRC Discussion Forums