on_input
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | on_input [2007/03/02 22:21] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Synopsis: | ||
| + | [[on]] [< | ||
| + | |||
| + | ======Description: | ||
| + | This hook is triggered whenever a command is entered on the input line, | ||
| + | or when text is sent to a channel or query. | ||
| + | |||
| + | This is a very powerful mechanism of the client. | ||
| + | it permits a very fine degree of control over the text entered on the | ||
| + | input line. Used carelessly, and it can easily disable the client. | ||
| + | Use with caution. | ||
| + | |||
| + | If a silent hook is set, one can use a loaded script to do preprocessing | ||
| + | of the input line. | ||
| + | |||
| + | ======Parameters: | ||
| + | |$* |text of input line entered | | ||
| + | |||
| + | ======Examples: | ||
| + | To emulate the [[set INPUT_ALIASES|INPUT_ALIASES]] setting: | ||
| + | on ^input " | ||
| + | eval $* | ||
| + | } | ||
| + | |||
on_input.txt · Last modified: 2007/03/02 22:21 by 127.0.0.1
