mIRC Home    About    Download    Register    News    Help

Print Thread
#238952 11/09/12 12:10 AM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
>ischan - if v1 is a channel which you are on.

I kicked myself from a channel and did //echo -aet $iif(#<name> ischan,$true,$false)

Even though the window was open and I wasn't on the channel, it returned $true...


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
Basically the documentation is misleading on this. I think it's working the way it's intended, but it may be confusing.

ischan will return true if the channel window is open, regardless of connection or joined status.

If you want to check whether you are actually in the channel, you should instead use: if ($me ison #channel)


Link Copied to Clipboard