mIRC Home    About    Download    Register    News    Help

Print Thread
#58556 31/10/03 10:12 AM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
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

#58557 31/10/03 10:22 AM
Joined: Sep 2003
Posts: 98
N
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
on ^1:OPEN:?: {
if (%pubdet == On) {
.notice $nick I am not accepting private messages, therefore your message is ignored
haltdef
}
}


www.stwar.us.to
IRCnet - #stwar
#58558 31/10/03 10:25 AM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
does not work, it opens window again

#58559 31/10/03 10:28 AM
Joined: Sep 2003
Posts: 98
N
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
maybe you have a on ^*:open: { allready in your script somewhere and so that one is used. if not it should work.


www.stwar.us.to
IRCnet - #stwar
#58560 31/10/03 10:34 AM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
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)

#58561 31/10/03 11:27 AM
Joined: Sep 2003
Posts: 98
N
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
well yes i know what you mean and that code should work.


www.stwar.us.to
IRCnet - #stwar
#58562 31/10/03 12:27 PM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Instead of the timer, just use

./close -m $nick

the window will close fast enough you won't be bothered with it


I refuse to engage in a battle of wits with an unarmed person. wink
#58563 31/10/03 01:51 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
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...

#58564 31/10/03 08:19 PM
Joined: Feb 2003
Posts: 23
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Feb 2003
Posts: 23
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

#58565 01/11/03 11:28 AM
Joined: Sep 2003
Posts: 58
S
Babel fish
Offline
Babel fish
S
Joined: Sep 2003
Posts: 58
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


***************************
To chat, or not to chat.
That's the question
#58566 03/11/03 09:05 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
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).


* cold edits his posts 24/7

Link Copied to Clipboard