mIRC Home    About    Download    Register    News    Help

Print Thread
#31374 22/06/03 01:52 AM
Joined: Jun 2003
Posts: 7
Y
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Y
Joined: Jun 2003
Posts: 7
I know I can double click on a private chat with someone and it will tell me where they are but I was wondering if someone would please tell me how to script this so it will automaticly do this and to automaticly close out private msg's from people who arent on a channel im on. Thank you very much for any help that you want to give me. Perferable KingTomato if you would help me that would be great. For some reason I trust you more.


With a gun in your mouth you speak only in vowels. T.D.
#31375 22/06/03 02:35 AM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
This can be done easily using $comchan and the on OPEN event. Here's an example of what would work:

Code:
on *:OPEN:?:*: {
  if ($comchan($nick,0) == 0) { close -m $nick }
} 


- Jason
#31376 22/06/03 02:36 AM
Joined: Dec 2002
Posts: 271
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
on *:text:*:?: { $iif(!$comchan($nick,0),close -m $nick) }


on the server i chat on you cant send messages, or talk to someone unless you are in the same room as them, so i dont have that problem, not that command will be executed whenever someone "whispers"/PM's to you any message, and if you arent on a channel with him/her, the chat window associated with him/her will be closed!


#31377 22/06/03 02:38 AM
Joined: Dec 2002
Posts: 271
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
I chose on TEXT, cause what if the window was opened while the person was in the channel? wink

#31378 24/06/03 11:40 AM
Joined: Jun 2003
Posts: 11
D
Pikka bird
Offline
Pikka bird
D
Joined: Jun 2003
Posts: 11
I guess he wants it perform when he double click the pchat window. The command that would be performed when double click the pchat window can be set in options > Mouse > Query , which is default /whois $1

So you can set it to perform an custom alias, say /check.whois $1

Code:
 
alias check.whois {
whois $1
if ($comchan($1,0) == 0) { close -m $1 }
}



Link Copied to Clipboard