Project

General

Profile

$comchan » History » Revision 3

Revision 2 (Per Amundsen, 11/21/2015 10:01 PM) → Revision 3/4 (Per Amundsen, 12/13/2019 06:32 PM)

_Added in 1.9.0_ 

 *$comchan(nick,N)* 

 Returns the names of channels which both you and nick are on. 

 *Parameters* 

 nick - The nick to compare channels with. 
 N - If N = 0, number of channels you share, otherwise the Nth channel. 

 *Properties* 

 .owner - Returns [[$true]] if you are owner on this channel, otherwise [[$false]]. *(AdiIRC only)* (AdiIRC only) 
 .admin - Returns [[$true]] if you are admin on this channel, otherwise [[$false]]. *(AdiIRC only)* (AdiIRC only) 
 .op - Returns [[$true]] if you are op on this channel, otherwise [[$false]]. 
 .help Returns [[$true]] if you are halfop on this channel, otherwise [[$false]].-  
 .voice - Returns [[$true]] if you have voice on this channel, otherwise [[$false]]. 


 *Example* 

 <pre> 
 ; Print number of channels you share with nick. 
 //echo -ag $comchan(nick, 0) 

 ; Print the first channel you share with nick. 
 //echo -ag $comchan(nick, 1) 
 </pre>