Difference between revisions of "On deop"
From Scriptwiki
m (yeah now its ok 2 example_s_) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
on <level>:DEOP:<#[,#]>:<commands> | on <level>:DEOP:<#[,#]>:<commands> | ||
− | $opnick refers to the user who was deoped. | + | [[$opnick]] refers to the user who was deoped. |
− | == | + | == Examples == |
Triggers when a user with level owner was deopped in #help.script or #mIRC and ops him again: | Triggers when a user with level owner was deopped in #help.script or #mIRC and ops him again: | ||
on owner:DEOP:#help.script,#mIRC: { mode $chan +o $opnick } | on owner:DEOP:#help.script,#mIRC: { mode $chan +o $opnick } | ||
+ | |||
+ | Triggers when you are deopped on #channel, and ask Q or L for op: | ||
+ | |||
+ | on !*:DEOP:#channel:{ if ($opnick == $me) && ((Q ison $chan) || (L ison $chan)) { msg $v1 op $chan } } | ||
== See Also == | == See Also == | ||
− | [[On_op|On op]] triggers when a user was opped. | + | * [[On_op|On op]] triggers when a user was opped. |
+ | * [[Access Levels]] | ||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 12:53, 7 July 2007
The on DEOP event triggers when a user on a channel is deopped.
on <level>:DEOP:<#[,#]>:<commands>
$opnick refers to the user who was deoped.
Examples
Triggers when a user with level owner was deopped in #help.script or #mIRC and ops him again:
on owner:DEOP:#help.script,#mIRC: { mode $chan +o $opnick }
Triggers when you are deopped on #channel, and ask Q or L for op:
on !*:DEOP:#channel:{ if ($opnick == $me) && ((Q ison $chan) || (L ison $chan)) { msg $v1 op $chan } }
See Also
- On op triggers when a user was opped.
- Access Levels