mIRC Homepage
Posted By: SuperMappy User in channel check - 22/01/07 11:56 PM
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?
Posted By: bwr30060 Re: User in channel check - 22/01/07 11:59 PM
Code:
if ($comchan(nick,0) > 0).....
Posted By: drc4 Re: User in channel check - 23/01/07 12:06 AM
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.
© mIRC Discussion Forums