On PARSELINE » History » Version 7
Per Amundsen, 02/24/2017 09:38 PM
1 | 1 | Per Amundsen | _Added in 1.9.7_ |
---|---|---|---|
2 | |||
3 | 2 | Per Amundsen | *<notextile>on <level>:PARSELINE:<in|out|*>:matchtext:<commands></notextile >* |
4 | 1 | Per Amundsen | |
5 | Triggers before incoming/outgoing server lines are received/sent and allows a script to modify them. |
||
6 | |||
7 | _See also [[/parseline]], [[$parsetype]], [[$parseline]]._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | 7 | Per Amundsen | <level> - The [[User Access Level]] for the event to trigger. |
12 | 4 | Per Amundsen | <in|out|*> - Listen to in/out messages or both. |
13 | 1 | Per Amundsen | <matchtext> - The [[Matchtext]] 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 | 6 | Per Amundsen | on *:PARSELINE:in:*badword*:/parseline -it $replace($parseline, badword, newword) |
20 | 1 | Per Amundsen | </pre> |