$mode » History » Version 5
Per Amundsen, 02/23/2023 05:12 PM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *$mode* |
||
4 | |||
5 | Returns the mpeg channel mode of the currently playing song. |
||
6 | |||
7 | _Only works if Media Player is set to iTunes/MediaMonkey/Winamp and proper plugins are installed._ |
||
8 | |||
9 | 2 | Per Amundsen | --- |
10 | |||
11 | _Added in 2.8_ |
||
12 | |||
13 | 1 | Per Amundsen | *$mode(N)* |
14 | |||
15 | 2 | Per Amundsen | Returns the Nth nick/mask affected by a channel mode change. |
16 | |||
17 | 3 | Per Amundsen | _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]]._ |
18 | 2 | Per Amundsen | |
19 | *Parameters* |
||
20 | |||
21 | 5 | Per Amundsen | table(ktable). |
22 | |*Parameter*|*Description*| |
||
23 | | N | If N = 0, number of nicks/masks, otherwise the Nth nick/mask. | |
||
24 | 1 | Per Amundsen | |
25 | *Properties* |
||
26 | |||
27 | 5 | Per Amundsen | table(ktable). |
28 | |*Property*|*Description*| |
||
29 | | .owner | List number of affected owner nicks or the Nth owner nick. *(AdiIRC only)* | |
||
30 | | .deowner | List number of affected deowner nicks or the Nth deowner nick. *(AdiIRC only)* | |
||
31 | | .admin | List number of affected admin nicks or the Nth admin nick. *(AdiIRC only)* | |
||
32 | | .deadmin | List number of affected deadmin nicks or the Nth deadmin nick. *(AdiIRC only)* | |
||
33 | | .op | List number of affected op nicks or the Nth op nick. | |
||
34 | | .deop | List number of affected deop nicks or the Nth deop nick. | |
||
35 | | .help | List number of affected help nicks or the Nth help nick. | |
||
36 | | .dehelp | List number of affected dehelp nicks or the Nth dehelp nick. | |
||
37 | | .voice | List number of affected voice nicks or the Nth voice nick. | |
||
38 | | .devoice | List number of affected devoice nicks or the Nth devoice nick. | |
||
39 | | .ban | List number of affected ban masks or the Nth ban mask. | |
||
40 | | .unban | List number of affected unban masks or the Nth ban masn. | |
||
41 | 2 | Per Amundsen | |
42 | *Example* |
||
43 | |||
44 | <pre> |
||
45 | ; Print number of affected nicks/masks during a RAWMODE event. |
||
46 | on *:RAWMODE:#:echo -ag $mode(0) |
||
47 | |||
48 | ; Print the first affected nicks/masks during a RAWMODE event. |
||
49 | on *:RAWMODE:#:echo -ag $mode(1) |
||
50 | |||
51 | ; Print number of affected op nicks during a RAWMODE event. |
||
52 | on *:RAWMODE:#:echo -ag $mode(0).op |
||
53 | |||
54 | ; Print the first affected nicks op nick during a RAWMODE event. |
||
55 | on *:RAWMODE:#:echo -ag $mode(1).op |
||
56 | </pre> |