Project

General

Profile

$opnick » History » Version 8

Per Amundsen, 02/23/2023 06:43 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 6 Per Amundsen
_See also [[$nopnick]] ._
8
9 1 Per Amundsen
*Example*
10
11
<pre>
12 4 Per Amundsen
on *:OP:*:echo -ag The nick opped is $opnick
13 1 Per Amundsen
14 4 Per Amundsen
on *:DEOP:*:echo -ag The nick deopped is $opnick
15 1 Per Amundsen
</pre>
16
17
-----------------------------------------------------------------------------
18
19 2 Per Amundsen
_Added in 2.0_
20
21 1 Per Amundsen
*$opnick(#,N)*
22
23 3 Per Amundsen
Returns the Nth operator nick.
24 6 Per Amundsen
25
_See also [[$nopnick]] ._
26 2 Per Amundsen
27
*Parameters*
28
29 8 Per Amundsen
table(ktable).
30
|*Parameter*|*Description*|
31
| <notextile>#</notextile> | The channel. |
32
| N | If N = 0, number of nicks, otherwise the Nth nick. |
33 2 Per Amundsen
34
*Example*
35
36
<pre>
37 5 Per Amundsen
//echo -ag There is $opnick(#,0) operator users
38 2 Per Amundsen
39 5 Per Amundsen
//echo -ag First operator nick is $opnick(#,1)
40 2 Per Amundsen
</pre>