mIRC Home    About    Download    Register    News    Help

Print Thread
#89396 06/07/04 08:22 PM
Joined: Jul 2004
Posts: 8
A
aztec Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jul 2004
Posts: 8
Hi, I wish mIRC to generate a message when another user sends me a private message. Tried:

on 1:notice:*:?: /notice $nick $me may not be able to accept private messages at present... (Auto Generated Message)

But as soon as I joined a channel I flooded myself off by /notice to myself.

Can anyone help? Thanks.

#89397 06/07/04 08:36 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
A simple one might be:

on *:OPEN:?:*:{
.msg $nick I'm not current accepting queries, sorry (Auto Message)
close -m $nick | .ignore -pnu30 $nick 3
}

The /close -m $nick closes the private message window with the nickname who message'd you. The /ignore -pnu30 ignores their private messages and notices for the next 30 seconds, then automatically removes the ignore (to prevent flooding).

For further help, try /help on open.

Regards,


Mentality/Chris
#89398 06/07/04 08:36 PM
Joined: Feb 2004
Posts: 9
M
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
M
Joined: Feb 2004
Posts: 9
Assuming you mean private message, not notice, try
Code:
 on *:open:?:*: { msg $nick BLARPH } 

open is when a window opens, the ? makes it so only with query windows, not channel windows.

Edit: Fixed yer code brackets :-)

Last edited by Mentality; 06/07/04 08:43 PM.
#89399 06/07/04 09:10 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
For the sake of correctness..

Quote:

on *:OPEN:?:*:{
.msg $nick I'm not current accepting queries, sorry (Auto Message) {
close -m $nick | .ignore -pnu30 $nick 3
}
}


Are completely useless.

Eamonn.

#89400 06/07/04 09:53 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Thanks, "fixed" it - just the way I'm used to typing it!

Regards,


Mentality/Chris
#89401 06/07/04 10:34 PM
Joined: Jul 2004
Posts: 8
A
aztec Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jul 2004
Posts: 8
In reply to my original post, thanks for fast replies. Got what I needed.

Aztec.

#89402 13/07/04 02:58 PM
Joined: Feb 2004
Posts: 50
D
Babel fish
Offline
Babel fish
D
Joined: Feb 2004
Posts: 50
You can use the ^ event prefix so the query window doesn't even open.

Code:
on ^*:OPEN:?:*: {
  .notice $nick I'm not accepting private messages at the moment. [auto reply]
  .ignore -ptnu30 $nick 2
  halt
}
}


Just an alternative wink


Link Copied to Clipboard