From WikiChip
mirc/identifiers/$comchan
< mirc‎ | identifiers
Revision as of 10:32, 2 July 2014 by Zmodem (talk | contribs) (Created $comchan identifier - mIRC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$comchan is used to return the common channels that both the local mIRC client, and a remote user, share.

Synopsis

$comchan(nick,N)[.property]

Parameters

nick The nickname of the user to find common channels with
N The Nth common channel that both the local and remote clients share

Properties

op Returns $true if the local mIRC client is opped on the matched channel
help Returns $true if the local mIRC client is a helper on the matched channel
voice Returns $true if the local mIRC client is voiced on the matched channel

Example

Echo the common channels of the local client, and a remote user nicknamed myFriend:

//echo -a $comchan(myFriend,0)

Echo the common channels of the local client, and a remote user nicknamed myFriend', and if the local client is opped on the first match:

//echo -a Total common channels: $comchan(myFriend,0) --- Is opped on $comchan(myFriend,1) $+ : $comchan(myFriend,1).op

Compatibility

Added: mIRC v5.0

Added On: 02/04/97

See Also