On TEXT » History » Version 1
Per Amundsen, 11/16/2015 04:12 AM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:TEXT:<matchtext>:<*|#|?>:<commands></notextile>* |
||
4 | |||
5 | Triggers whenever a message is received. |
||
6 | |||
7 | See also [[on ACTION]], [[on NOTICE]]. |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | <level> - The level for the event to trigger. |
||
12 | <matchtext> - The [[Matchtext]] to listen to. |
||
13 | <*|#|?> - The [[Matchtarget]] to listen to. |
||
14 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
15 | |||
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | on *:TEXT:*:#:echo -ag Message $1- from $nick on channel $chan |
||
20 | </pre> |