mIRC Homepage
Posted By: bunar PM stuff - 31/10/03 10:12 AM
i have this as "some kind of ignore type"

on 1:OPEN:?: {
if (%pubdet == On) {
.notice $nick I am not accepting private messages, therefore your message is ignored
.timer 1 1 closemsg $nick
}
}

but this opens priv msg window and closes it, but is there a way so mirc WONT open priv msg window and yet execute that notice...

note:

1. i am aware of ignore options - no i dont want to use that
2. i am using mirc 6.03
Posted By: neznani Re: PM stuff - 31/10/03 10:22 AM
on ^1:OPEN:?: {
if (%pubdet == On) {
.notice $nick I am not accepting private messages, therefore your message is ignored
haltdef
}
}
Posted By: bunar Re: PM stuff - 31/10/03 10:25 AM
does not work, it opens window again
Posted By: neznani Re: PM stuff - 31/10/03 10:28 AM
maybe you have a on ^*:open: { allready in your script somewhere and so that one is used. if not it should work.
Posted By: bunar Re: PM stuff - 31/10/03 10:34 AM
hmm dunno if you understund me...
when some1 is pm-ing me, it closes that window and notices him, BUT i wanna make that mirc DO NOT open that pm window at all ! and yet that it notices user... but i dont want to include any ignore options (switches)
Posted By: neznani Re: PM stuff - 31/10/03 11:27 AM
well yes i know what you mean and that code should work.
Posted By: CtrlAltDel Re: PM stuff - 31/10/03 12:27 PM
Instead of the timer, just use

./close -m $nick

the window will close fast enough you won't be bothered with it
Posted By: bunar Re: PM stuff - 31/10/03 01:51 PM
hehe, yeah i know you all want to help, but this (my) code closes it fast as well, but i asked code that WONT OPEN PM window AT ALL and that in the same time notice work...
Posted By: cybah Re: PM stuff - 31/10/03 08:19 PM
I think you'll need a sockbot for that and then halt the sockwrite to the "mircserver" when a pm happens.
Alot of work grin
I would say,be happy with the on blushpen: event wink
Posted By: stimpy Re: PM stuff - 01/11/03 11:28 AM
I think neznani already sayd the problem...
His code should work perfect...

I also think you already use a "On OPEN" event in one of your other scripts...

Grtzzz
Posted By: cold Re: PM stuff - 03/11/03 09:05 PM
The code neznani posted is supposed to work. I'd only replace that "on ^[color:red]1:OPEN:?:{[/color]" by "on ^[color:red]*:OPEN:?:{[/color]".
Other than that, you probably have another OPEN event or something. Try placing this event in the first remote file you have in your list, above any other OPEN event you may have.
You might want to check if the default access level is set as 1 too (alt+r, Options menu, Default level: 1).
© mIRC Discussion Forums