$opnick » History » Version 9
Per Amundsen, 02/23/2023 06:45 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$opnick* |
||
| 4 | |||
| 5 | Returns the nick that was (de)opped during a [[on OP]] on [[on DEOP]] [[Scripting_Events|event]]. |
||
| 6 | |||
| 7 | *Example* |
||
| 8 | |||
| 9 | <pre> |
||
| 10 | 4 | Per Amundsen | on *:OP:*:echo -ag The nick opped is $opnick |
| 11 | 1 | Per Amundsen | |
| 12 | 4 | Per Amundsen | on *:DEOP:*:echo -ag The nick deopped is $opnick |
| 13 | 1 | Per Amundsen | </pre> |
| 14 | |||
| 15 | ----------------------------------------------------------------------------- |
||
| 16 | |||
| 17 | 2 | Per Amundsen | _Added in 2.0_ |
| 18 | |||
| 19 | 1 | Per Amundsen | *$opnick(#,N)* |
| 20 | |||
| 21 | Returns the Nth operator nick. |
||
| 22 | 3 | Per Amundsen | |
| 23 | 9 | Per Amundsen | _See also [[$vnick]], [[$nvnick]], [[$hnick]], [[$nhnick]], [[$nopnick.]], [[$admnick]], [[$nadmnick]], [[$onick.]], [[$nonick]]._ |
| 24 | 2 | Per Amundsen | |
| 25 | *Parameters* |
||
| 26 | |||
| 27 | 8 | Per Amundsen | table(ktable). |
| 28 | |*Parameter*|*Description*| |
||
| 29 | | <notextile>#</notextile> | The channel. | |
||
| 30 | | N | If N = 0, number of nicks, otherwise the Nth nick. | |
||
| 31 | 2 | Per Amundsen | |
| 32 | *Example* |
||
| 33 | |||
| 34 | <pre> |
||
| 35 | 5 | Per Amundsen | //echo -ag There is $opnick(#,0) operator users |
| 36 | 2 | Per Amundsen | |
| 37 | 5 | Per Amundsen | //echo -ag First operator nick is $opnick(#,1) |
| 38 | 2 | Per Amundsen | </pre> |