mIRC Homepage
Posted By: Amar mIRC builtin function ison - 18/10/04 10:06 AM
ison nickname v1 is on channel v2 (copied from mIRC help file)

Hi guys

Now, how I can write a small script to check whether a person joining my channel is in some other channel also? A coding like the following will help me?
-----
on 1:JOIN:#mychannel: {
if ($nick ison #hischannel) { .echo -a $nick is in specified channel }
else { .echo -a Script is failing! }
}
------

Thanks
Amar

Posted By: starbucks_mafia Re: mIRC builtin function ison - 18/10/04 12:46 PM
ison only works when you're on the channel aswell. To tell when someone is on a channel that you're not on you'd have to /whois them and then use raw events to check the result. Even then it would rely on the channel not being having mode +s or +p set.
Posted By: Amar Re: mIRC builtin function ison - 18/10/04 04:07 PM
Thanks dude, now I will try the raw method though I am quite new to it.
Thanks again
© mIRC Discussion Forums