From WikiChip
$comchan Identifier - mIRC
< mirc‎ | identifiers

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


Synopsis[edit]

$comchan(nick,N)[.property]

Parameters[edit]

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[edit]

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
owner Returns $true if the local mIRC client is owner on the matched channel

Example[edit]

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[edit]

Added: mIRC v5.0
Added on: 02 Apr 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list