Project

General

Profile

$mode » History » Revision 5

Revision 4 (Per Amundsen, 12/14/2019 08:16 AM) → Revision 5/6 (Per Amundsen, 02/23/2023 05:12 PM)

_Added in 1.8.10_ 

 *$mode* 

 Returns the mpeg channel mode of the currently playing song. 

 _Only works if Media Player is set to iTunes/MediaMonkey/Winamp and proper plugins are installed._ 

 --- 

 _Added in 2.8_ 

 *$mode(N)* 

 Returns the Nth nick/mask affected by a channel mode change. 

 _See also [[on RAWMODE]], [[on MODE]], [[on SERVERMODE]], [[on OWNER]], [[on DEOWNER]], [[on ADMIN]], [[on DEADMIN]], [[on OP]], [[on DEOP]], [[on HELP]], [[on DEHELP]], [[on VOICE]], [[on DEVOICE]], [[on BAN]], [[on UNBAN]]._ 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | N | - If N = 0, number of nicks/masks, otherwise the Nth nick/mask. | 

 *Properties* 

 table(ktable). 
 |*Property*|*Description*| 
 | .owner | - List number of affected owner nicks or the Nth owner nick. *(AdiIRC only)* | 
 | .deowner | - List number of affected deowner nicks or the Nth deowner nick. *(AdiIRC only)* | 
 | .admin | - List number of affected admin nicks or the Nth admin nick. *(AdiIRC only)* | 
 | .deadmin | - List number of affected deadmin nicks or the Nth deadmin nick. *(AdiIRC only)* | 
 | .op | - List number of affected op nicks or the Nth op nick. | 
 | .deop | - List number of affected deop nicks or the Nth deop nick. | 
 | .help | - List number of affected help nicks or the Nth help nick. | 
 | .dehelp | - List number of affected dehelp nicks or the Nth dehelp nick. | 
 | .voice | - List number of affected voice nicks or the Nth voice nick. | 
 | .devoice | - List number of affected devoice nicks or the Nth devoice nick. | 
 | .ban | - List number of affected ban masks or the Nth ban mask. | 
 | .unban | - List number of affected unban masks or the Nth ban masn. | 

 *Example* 

 <pre> 
 ; Print number of affected nicks/masks during a RAWMODE event. 
 on *:RAWMODE:#:echo -ag $mode(0) 

 ; Print the first affected nicks/masks during a RAWMODE event. 
 on *:RAWMODE:#:echo -ag $mode(1) 

 ; Print number of affected op nicks during a RAWMODE event. 
 on *:RAWMODE:#:echo -ag $mode(0).op 

 ; Print the first affected nicks op nick during a RAWMODE event. 
 on *:RAWMODE:#:echo -ag $mode(1).op 
 </pre>