Difference between revisions of "On op"

From Scriptwiki
Jump to: navigation, search
(typo)
 
Line 14: Line 14:
  
 
* [[On_deop|On deop]] triggers when a user was deopped.
 
* [[On_deop|On deop]] triggers when a user was deopped.
* [[:Category:Access Levels|Access Levels]]
+
* [[Access Levels]]
  
 
[[Category:Events]]
 
[[Category:Events]]

Latest revision as of 18:59, 5 September 2005

The on OP event triggers when a user on a channel is opped.

on <level>:OP:<#[,#]>:<commands>

$opnick refers to the user who was oped.

Example

Triggers when a user with level 999 was opped in #help.script or #mIRC and deops him again:

on 999:OP:#help.script,#mIRC: { mode $chan -o $opnick }

See Also