Scripting Events » History » Version 15
Per Amundsen, 07/17/2014 06:44 AM
1 | 13 | Per Amundsen | h1. Scripting Event Options |
---|---|---|---|
2 | 1 | Per Amundsen | |
3 | 8 | Per Amundsen | Supported <level> prefixes: |
4 | |||
5 | 11 | Per Amundsen | & - Ignore the event if another event has already halted the text. |
6 | 8 | Per Amundsen | ^ - Enable halt events (hide default text output from the event) |
7 | ! - Ignore events made by you |
||
8 | @ - Only trigger if you have channel op |
||
9 | $ - Indicate the wildcard text is a regular expression. |
||
10 | me: - Ignore events not made by you. |
||
11 | 6 | Per Amundsen | |
12 | 9 | Per Amundsen | User level access is not implemented yet. |
13 | 1 | Per Amundsen | |
14 | 13 | Per Amundsen | h1. Scripting Event Evaluation |
15 | 14 | Per Amundsen | |
16 | Matchtext and Target Window can be evaluated using $(code) or contain a single %variable. |
||
17 | 12 | Per Amundsen | |
18 | *Example* |
||
19 | <pre> |
||
20 | ;Set a target variable. |
||
21 | set %target #channel |
||
22 | 1 | Per Amundsen | |
23 | 12 | Per Amundsen | ;Subscribe to the TEXT event. |
24 | 13 | Per Amundsen | on *:TEXT:$(* $+ $me $+ *)):%target:echo -ag My nick was highlighted on %target |
25 | 1 | Per Amundsen | </pre> |
26 | 12 | Per Amundsen | |
27 | 13 | Per Amundsen | h1. Scripting Events |
28 | 15 | Per Amundsen | |
29 | 2 | Per Amundsen | <pre> |
30 | 1 | Per Amundsen | raw <numeric>:<matchtext>:<commands> |
31 | |||
32 | ctcp <level>:<matchtext>:<*|#|?>:<commands> |
||
33 | |||
34 | 4 | Per Amundsen | on <level>:SOCKOPEN:name:commands |
35 | 1 | Per Amundsen | |
36 | 4 | Per Amundsen | on <level>:SOCKREAD:name:commands |
37 | 1 | Per Amundsen | |
38 | 4 | Per Amundsen | on <level>:SOCKLISTEN:name:commands |
39 | 1 | Per Amundsen | |
40 | 4 | Per Amundsen | on <level>:SOCKCLOSE:name:commands |
41 | 1 | Per Amundsen | |
42 | 4 | Per Amundsen | on <level>:SIGNAL:name:command |
43 | 1 | Per Amundsen | |
44 | on <level>:LOGON:*:<commands> |
||
45 | |||
46 | on <level>:DNS:<commands> |
||
47 | |||
48 | on <level>:CTCPREPLY:<matchtext>:<commands> |
||
49 | |||
50 | on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands> |
||
51 | |||
52 | 5 | Per Amundsen | on <level>:APPACTIVE:<commands> |
53 | |||
54 | 1 | Per Amundsen | on <level>:ACTIVE:<*#?=!@>:<commands> |
55 | |||
56 | on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands> |
||
57 | |||
58 | on <level>:INVITE:<#[,#]>:<commands> |
||
59 | |||
60 | on <level>:TABCOMP:<*#?=!@>:<commands> |
||
61 | |||
62 | on <level>:WALLOPS:<matchtext>:<commands> |
||
63 | |||
64 | on <level>:ERROR:<matchtext>:<commands> |
||
65 | |||
66 | on <level>:RAWMODE:#:<commands> |
||
67 | |||
68 | on <level>:DEHELP:<#[,#]>:<commands> |
||
69 | |||
70 | on <level>:HELP:<#[,#]>:<commands> |
||
71 | |||
72 | on <level>:DEVOICE:<#[,#]>:<commands> |
||
73 | |||
74 | on <level>:VOICE:<#[,#]>:<commands> |
||
75 | |||
76 | on <level>:DEOP:<#[,#]>:<commands> |
||
77 | |||
78 | on <level>:OP:<#[,#]>:<commands> |
||
79 | |||
80 | on <level>:INPUT:<*#?=!@>:<commands> |
||
81 | |||
82 | on <level>:UNBAN:<#[,#]>:<commands> |
||
83 | |||
84 | on <level>:BAN:<#[,#]>:<commands> |
||
85 | |||
86 | on <level>:CHAT:<matchtext>:<commands> |
||
87 | |||
88 | on <level>:KICK:<#[,#]>:<commands> |
||
89 | |||
90 | on <level>:NOTIFY:<commands> |
||
91 | |||
92 | on <level>:UNNOTIFY:<commands> |
||
93 | |||
94 | on <level>:NICK:<commands> |
||
95 | |||
96 | on <level>:QUIT:<commands> |
||
97 | |||
98 | on <level>:LOAD:<commands> |
||
99 | |||
100 | on <level>:UNLOAD:<commands>' |
||
101 | |||
102 | on <level>:START:<commands> |
||
103 | |||
104 | on <level>:EXIT:<commands> |
||
105 | |||
106 | on <level>:DNS:<commands> |
||
107 | |||
108 | on <level>:CONNECTFAIL:<commands> |
||
109 | |||
110 | on <level>:CONNECT:<commands> |
||
111 | |||
112 | on <level>:DISCONNECT:<commands> |
||
113 | |||
114 | on <level>:TOPIC:<#[,#]>:<commands> |
||
115 | |||
116 | on <level>:USERMODE:<commands> |
||
117 | |||
118 | on <level>:MODE:<#[,#]>:<commands> |
||
119 | |||
120 | on <level>:PART:<#[,#]>:<commands> |
||
121 | |||
122 | on <level>:JOIN:<#[,#]>:<commands> |
||
123 | |||
124 | on <level>:SNOTICE:<matchtext>:<commands> |
||
125 | |||
126 | on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands> |
||
127 | |||
128 | on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands> |
||
129 | |||
130 | on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands> |
||
131 | 3 | Per Amundsen | |
132 | This event is added as a replacement for OnSongChanged |
||
133 | on <level>:SONG:<commands> |
||
134 | 7 | Per Amundsen | |
135 | 10 | Per Amundsen | Triggers whenever the config file is reloaded |
136 | 1 | Per Amundsen | on <level>:OPTIONS:<commands> |
137 | 10 | Per Amundsen | |
138 | Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable. |
||
139 | on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands> |
||
140 | 3 | Per Amundsen | </pre> |