Project

General

Profile

$opnick » History » Revision 8

Revision 7 (Per Amundsen, 02/23/2023 06:42 PM) → Revision 8/9 (Per Amundsen, 02/23/2023 06:43 PM)

_Added in 1.9.0_ 

 *$opnick* 

 Returns the nick that was (de)opped during a [[on OP]] on [[on DEOP]] [[Scripting_Events|event]]. 

 _See also [[$nopnick]] ._ 

 *Example* 

 <pre> 
 on *:OP:*:echo -ag The nick opped is $opnick 

 on *:DEOP:*:echo -ag The nick deopped is $opnick 
 </pre> 

 ----------------------------------------------------------------------------- 

 _Added in 2.0_ 

 *$opnick(#,N)* 

 Returns the Nth operator nick. 

 _See also [[$nopnick]] ._ 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | <notextile>#</notextile> | - The channel. | 
 | N | - If N = 0, number of nicks, otherwise the Nth nick. | 

 *Example* 

 <pre> 
 //echo -ag There is $opnick(#,0) operator users 

 //echo -ag First operator nick is $opnick(#,1) 
 </pre>