Project

General

Profile

Scripting Events » History » Version 33

Per Amundsen, 11/13/2015 05:47 AM

1 17 Per Amundsen
{{>toc}}
2
3 33 Per Amundsen
h1. Scripting Event Options
4 1 Per Amundsen
5 8 Per Amundsen
Supported <level> prefixes:
6
7 11 Per Amundsen
& - Ignore the event if another event has already halted the text.
8 8 Per Amundsen
^ - Enable halt events (hide default text output from the event)
9
! - Ignore events made by you
10
@ - Only trigger if you have channel op
11
$ - Indicate the wildcard text is a regular expression.
12
me: - Ignore events not made by you.
13 18 Per Amundsen
[+]<level> - Level to match.
14 1 Per Amundsen
15 32 Per Amundsen
h2. Scripting Event Evaluation
16 14 Per Amundsen
17
Matchtext and Target Window can be evaluated using $(code) or contain a single %variable.
18 12 Per Amundsen
19
*Example*
20
<pre>
21 23 Per Amundsen
; Set a target variable.
22 12 Per Amundsen
set %target #channel
23 1 Per Amundsen
24 23 Per Amundsen
; Subscribe to the TEXT event, try evaluate my nick, and if it matches, print a text.
25 13 Per Amundsen
on *:TEXT:$(* $+ $me $+ *)):%target:echo -ag My nick was highlighted on %target
26 1 Per Amundsen
</pre>
27 12 Per Amundsen
28 33 Per Amundsen
h1. Scripting Events
29 15 Per Amundsen
30 28 Per Amundsen
|^. [[on RAW]]
31
[[on CTCP]]
32 29 Per Amundsen
[[on ACTION]]
33
[[on ACTIVE]]
34
[[on APPACTIVE]]
35
[[on BAN]]
36
[[on CHAT]]
37
[[on CLIENTTEXT]]
38 30 Per Amundsen
[[on CLOSE]]
39 29 Per Amundsen
[[on CONNECT]]
40
[[on CONNECTFAIL]]
41
[[on CTCPREPLY]]
42
[[on DEHELP]]
43
[[on DEOP]]
44
[[on DEVOICE]]
45 30 Per Amundsen
 |^. [[on DIALOG]]
46 29 Per Amundsen
[[on DISCONNECT]]
47 1 Per Amundsen
[[on DNS]]
48 30 Per Amundsen
[[on DNS]]
49
[[on ERROR]]
50 29 Per Amundsen
[[on EXIT]]
51
[[on FILERCVD]]
52
[[on FILESENT]]
53
[[on GETFAIL]]
54
[[on HELP]]
55
[[on HOTLINK]]
56
[[on INPUT]]
57
[[on INVITE]]
58 1 Per Amundsen
[[on JOIN]]
59 30 Per Amundsen
[[on KEYDOWN]]
60
  |^. [[on KEYUP]]
61 29 Per Amundsen
[[on KICK]]
62
[[on LOAD]]
63
[[on LOGON]]
64
[[on MODE]]
65 1 Per Amundsen
[[on MP3END]]
66 29 Per Amundsen
[[on NICK]]
67 30 Per Amundsen
[[on NOTICE]]
68 29 Per Amundsen
[[on NOTIFY]]
69
[[on OP]]
70 30 Per Amundsen
[[on OPEN]]
71 1 Per Amundsen
[[on OPTIONS]]
72 29 Per Amundsen
[[on PARSELINE]]
73
[[on PART]]
74
[[on PING]]
75 30 Per Amundsen
 |^.  [[on PONG]]
76 1 Per Amundsen
[[on QUIT]]
77 29 Per Amundsen
[[on RAWMODE]]
78
[[on RESUME]]
79 1 Per Amundsen
[[on SENDFAIL]]
80 30 Per Amundsen
[[on SERVERMODE]]
81 29 Per Amundsen
[[on SIGNAL]]
82
[[on SNOTICE]]
83
[[on SOCKCLOSE]]
84 30 Per Amundsen
[[on SOCKLISTEN]]
85 29 Per Amundsen
[[on SOCKOPEN]]
86
[[on SOCKREAD]]
87
[[on SONG]]
88
[[on START]]
89
[[on SUSPEND]]
90 30 Per Amundsen
 |^.  [[on TABCOMP]]
91 29 Per Amundsen
[[on TEXT]]
92
[[on TOPIC]]
93 1 Per Amundsen
[[on UNBAN]]
94 29 Per Amundsen
[[on UNLOAD]]
95
[[on UNNOTIFY]]
96 30 Per Amundsen
[[on UNOTIFY]]
97 29 Per Amundsen
[[on USERMODE]]
98 1 Per Amundsen
[[on VOICE]]
99
[[on WALLOPS]]
100
 |
101 32 Per Amundsen
102 33 Per Amundsen
h1. Missing events
103 32 Per Amundsen
104
AGENT
105
CHATOPEN
106
DCCSERVER
107
DEOWNER
108
MDIEND
109
NOSOUND
110
OWNER
111
WAVEEND
112
VCMD
113
PLAYEND
114
SERV
115
SERVCLOSE
116
SERVEROP
117
SERVOPEN
118
SOCKWRITE
119
UPDREAD
120
UPDWRITE
121 27 Per Amundsen
122 2 Per Amundsen
<pre>
123 1 Per Amundsen
raw <numeric>:<matchtext>:<commands>
124
125
ctcp <level>:<matchtext>:<*|#|?>:<commands>
126
127 4 Per Amundsen
on <level>:SOCKOPEN:name:commands
128 1 Per Amundsen
129 4 Per Amundsen
on <level>:SOCKREAD:name:commands
130 1 Per Amundsen
131 4 Per Amundsen
on <level>:SOCKLISTEN:name:commands
132 1 Per Amundsen
133 4 Per Amundsen
on <level>:SOCKCLOSE:name:commands
134 1 Per Amundsen
135 4 Per Amundsen
on <level>:SIGNAL:name:command
136 1 Per Amundsen
137
on <level>:LOGON:*:<commands>
138
139
on <level>:DNS:<commands>
140
141
on <level>:CTCPREPLY:<matchtext>:<commands>
142
143
on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands>
144
145 5 Per Amundsen
on <level>:APPACTIVE:<commands>
146
147 1 Per Amundsen
on <level>:ACTIVE:<*#?=!@>:<commands>
148
149
on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands>
150
151
on <level>:INVITE:<#[,#]>:<commands>
152
153
on <level>:TABCOMP:<*#?=!@>:<commands>
154
155
on <level>:WALLOPS:<matchtext>:<commands>
156
157
on <level>:ERROR:<matchtext>:<commands>
158
159
on <level>:RAWMODE:#:<commands>
160
161
on <level>:DEHELP:<#[,#]>:<commands>
162
163
on <level>:HELP:<#[,#]>:<commands>
164
165
on <level>:DEVOICE:<#[,#]>:<commands>
166
167
on <level>:VOICE:<#[,#]>:<commands>
168
169
on <level>:DEOP:<#[,#]>:<commands>
170
171
on <level>:OP:<#[,#]>:<commands>
172
173
on <level>:INPUT:<*#?=!@>:<commands>
174
175
on <level>:UNBAN:<#[,#]>:<commands>
176
177
on <level>:BAN:<#[,#]>:<commands>
178
179
on <level>:CHAT:<matchtext>:<commands>
180
181
on <level>:KICK:<#[,#]>:<commands>
182
183
on <level>:NOTIFY:<commands>
184
185
on <level>:UNNOTIFY:<commands>
186
187
on <level>:NICK:<commands>
188
189
on <level>:QUIT:<commands>
190
191
on <level>:LOAD:<commands>
192
193
on <level>:UNLOAD:<commands>'
194
195
on <level>:START:<commands>
196
197
on <level>:EXIT:<commands>
198
199
on <level>:DNS:<commands>
200
201
on <level>:CONNECTFAIL:<commands>
202
203
on <level>:CONNECT:<commands>
204
205
on <level>:DISCONNECT:<commands>
206
207
on <level>:TOPIC:<#[,#]>:<commands>
208
209
on <level>:USERMODE:<commands>
210
211
on <level>:MODE:<#[,#]>:<commands>
212
213
on <level>:PART:<#[,#]>:<commands>
214
215
on <level>:JOIN:<#[,#]>:<commands>
216
217
on <level>:SNOTICE:<matchtext>:<commands>
218
219
on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands>
220
221
on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands>
222
223
on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
224 3 Per Amundsen
225 16 Per Amundsen
on <level>:MP3END:<commands>
226
227 19 Per Amundsen
on <level>:PARSELINE:<in|out|*>:matchtext:<commands>
228
229 24 Per Amundsen
on <level>:PING:<commands>
230
231
on <level>:PONG:<commands>
232
233 25 Per Amundsen
on <level>:FILESENT:<filename[,filename]>:<commands>
234
235
on <level>:FILERCVD:<filename[,filename]>:<commands>
236
237
on <level>:SENDFAIL:<filename[,filename]>:<commands>
238
239
on <level>:GETFAIL:<filename[,filename]>:<commands>
240
241 26 Per Amundsen
Triggers when the computer is about to suspend.
242
on <level>:SUSPEND:<commands>
243
244
Triggers when the computer resumes from suspend.
245
on <level>:RESUME:<commands>
246
247 21 Per Amundsen
Triggers when the chosen media player changes song.
248 3 Per Amundsen
on <level>:SONG:<commands>
249 7 Per Amundsen
250 10 Per Amundsen
Triggers whenever the config file is reloaded
251 1 Per Amundsen
on <level>:OPTIONS:<commands>
252 10 Per Amundsen
253
Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable.
254
on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands>
255 3 Per Amundsen
</pre>