mIRC Home    About    Download    Register    News    Help

Print Thread
User in channel check #169423 22/01/07 11:56 PM
Joined: Jan 2004
Posts: 16
S
SuperMappy Offline OP
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?

Re: User in channel check [Re: SuperMappy] #169424 22/01/07 11:59 PM
Joined: May 2005
Posts: 449
bwr30060 Offline
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
Code:
if ($comchan(nick,0) > 0).....

Re: User in channel check [Re: SuperMappy] #169425 23/01/07 12:06 AM
Joined: Nov 2005
Posts: 105
D
drc4 Offline
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.