Difference between revisions of "On mode"
From Scriptwiki
(adding Albie's example as soon as its ready ;)) |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
== Example == | == Example == | ||
+ | To reverse any changes a user makes to the channel, take a look at [[Undo_Modechanges|this script]]. | ||
== See Also == | == See Also == | ||
− | To react on modes set by a server | + | * [[On_servermode|On servermode event]] To react on modes set by a server. |
+ | * [[on rawmode]] | ||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 09:53, 2 July 2007
The on MODE event triggers when a user changes a channel mode.
on <level>:MODE:<#[,#]>:<commands>
Note that it does only trigger when a channel mode is changed, not when a user mode is changed.
Remember, that you need to specify a limit to set +l and a key to set and unset +k, but you dont need to specify a limit to unset +l. For additional info, read raw 005.
Example
To reverse any changes a user makes to the channel, take a look at this script.
See Also
- On servermode event To react on modes set by a server.
- on rawmode