mIRC Home    About    Download    Register    News    Help

Print Thread
#169423 22/01/07 11:56 PM
Joined: Jan 2004
Posts: 16
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2004
Posts: 16
How can I set a variable to check that a person, who sends me a message, is currently in any of the channels I am in?

Joined: May 2005
Posts: 449
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
Code:
if ($comchan(nick,0) > 0).....

Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
Yeah, you could use something along the lines of
Code:
 on 1:OPEN:?:*:{
  if ($comchan($nick,0) > 0) { echo -a (Incoming Message) $nick is on a common channel. }
  else { echo -a (Incoming Message) You do not share a common channel with $nick $+ .) }
}

You can edit the message to say whatever you'd like.


Link Copied to Clipboard