Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
28
bitchx-docs/5_Programming/hook
Normal file
28
bitchx-docs/5_Programming/hook
Normal file
@@ -0,0 +1,28 @@
|
||||
Synopsis:
|
||||
hook <anything>
|
||||
|
||||
Description:
|
||||
HOOK is used for one thing only; to activate a HOOK hook. Don't worry
|
||||
if that didn't make much sense. The client has a mechanism by which
|
||||
an arbitrary hook may be defined that can be hooked at any time by
|
||||
the HOOK command. The hook is created just like any other named
|
||||
hook, except only the HOOK command may trigger it.
|
||||
|
||||
Examples:
|
||||
This script will echo a line every 10 seconds:
|
||||
on ^hook "foo" {
|
||||
timer 10 {
|
||||
echo This line is repeated every 10 seconds
|
||||
hook foo
|
||||
}
|
||||
}
|
||||
hook foo
|
||||
|
||||
See Also:
|
||||
on(5) hook
|
||||
|
||||
Other Notes:
|
||||
The same functionality of HOOK can be obtained with normal aliases.
|
||||
However, use of HOOK is preferred as it avoids the need for recursive
|
||||
aliases (which have been known to cause trouble).
|
||||
|
||||
Reference in New Issue
Block a user