mIRC Home    About    Download    Register    News    Help

Print Thread
#100904 18/10/04 10:06 AM
Joined: Aug 2003
Posts: 18
A
Amar Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2003
Posts: 18
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



if it is a door, it will open!
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Aug 2003
Posts: 18
A
Amar Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2003
Posts: 18
Thanks dude, now I will try the raw method though I am quite new to it.
Thanks again


if it is a door, it will open!

Link Copied to Clipboard