Project

General

Profile

$comchan » History » Version 2

Per Amundsen, 11/21/2015 10:01 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$comchan(nick,N)*
4
5
Returns the names of channels which both you and nick are on.
6
7
*Parameters*
8
9
nick - The nick to compare channels with.
10
N - If N = 0, number of channels you share, otherwise the Nth channel.
11
12
*Properties*
13
14 2 Per Amundsen
.owner - Returns [[$true]] if you are owner on this channel, otherwise [[$false]]. (AdiIRC only)
15
.admin - Returns [[$true]] if you are admin on this channel, otherwise [[$false]]. (AdiIRC only)
16 1 Per Amundsen
.op - Returns [[$true]] if you are op on this channel, otherwise [[$false]].
17
.help Returns [[$true]] if you are halfop on this channel, otherwise [[$false]].- 
18
.voice - Returns [[$true]] if you have voice on this channel, otherwise [[$false]].
19 2 Per Amundsen
20 1 Per Amundsen
21
*Example*
22
23
<pre>
24
; Print number of channels you share with nick.
25
//echo -ag $comchan(nick, 0)
26
27
; Print the first channel you share with nick.
28
//echo -ag $comchan(nick, 1)
29
</pre>