$comchan » History » Version 4
Per Amundsen, 02/16/2023 09:24 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 | 4 | Per Amundsen | table(ktable). |
| 10 | |*Parameter*|*Description*| |
||
| 11 | | nick | The nick to compare channels with. | |
||
| 12 | | N | If N = 0, number of channels you share, otherwise the Nth channel. | |
||
| 13 | 1 | Per Amundsen | |
| 14 | *Properties* |
||
| 15 | |||
| 16 | 4 | Per Amundsen | table(ktable). |
| 17 | |*Property*|*Description*| |
||
| 18 | | .owner | Returns [[$true]] if you are owner on this channel, otherwise [[$false]]. *(AdiIRC only)* | |
||
| 19 | | .admin | Returns [[$true]] if you are admin on this channel, otherwise [[$false]]. *(AdiIRC only)* | |
||
| 20 | | .op | Returns [[$true]] if you are op on this channel, otherwise [[$false]]. | |
||
| 21 | | .help | Returns [[$true]] if you are halfop on this channel, otherwise [[$false]]. | |
||
| 22 | | .voice | Returns [[$true]] if you have voice on this channel, otherwise [[$false]]. | |
||
| 23 | 2 | Per Amundsen | |
| 24 | 1 | Per Amundsen | |
| 25 | *Example* |
||
| 26 | |||
| 27 | <pre> |
||
| 28 | ; Print number of channels you share with nick. |
||
| 29 | //echo -ag $comchan(nick, 0) |
||
| 30 | |||
| 31 | ; Print the first channel you share with nick. |
||
| 32 | //echo -ag $comchan(nick, 1) |
||
| 33 | </pre> |