on_set
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_set [2006/08/29 20:18] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======Description: | ||
+ | This hook is triggered whenever a /[[set]] is issued. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 |name of variable to be set. will be " | ||
+ | |$1- |value the variable will be set to. will be "No such variable " | ||
+ | |||
+ | ======Examples: | ||
+ | To make sure [[set security]] stays on: | ||
+ | on ^set " | ||
+ | xecho -b You cannot set SECURITY off! | ||
+ | set exec_protection 7 | ||
+ | } | ||
+ | |||
+ | To warn of all invalid /SET attempts: | ||
+ | on ^set " | ||
+ | xecho -b $1-. Please try again | ||
+ | } | ||
+ | |||
on_set.txt · Last modified: 2006/08/29 20:18 by 127.0.0.1