Project

General

Profile

$comchan » History » Version 1

Per Amundsen, 08/11/2015 01:30 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
.op - Returns [[$true]] if you are op on this channel, otherwise [[$false]].
15
.help Returns [[$true]] if you are halfop on this channel, otherwise [[$false]].- 
16
.voice - Returns [[$true]] if you have voice on this channel, otherwise [[$false]].
17
18
*Example*
19
20
<pre>
21
; Print number of channels you share with nick.
22
//echo -ag $comchan(nick, 0)
23
24
; Print the first channel you share with nick.
25
//echo -ag $comchan(nick, 1)
26
</pre>