Project

General

Profile

Scripting Events » History » Version 34

Per Amundsen, 11/13/2015 05:49 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 2 Per Amundsen
<pre>
103 1 Per Amundsen
raw <numeric>:<matchtext>:<commands>
104
105
ctcp <level>:<matchtext>:<*|#|?>:<commands>
106
107 4 Per Amundsen
on <level>:SOCKOPEN:name:commands
108 1 Per Amundsen
109 4 Per Amundsen
on <level>:SOCKREAD:name:commands
110 1 Per Amundsen
111 4 Per Amundsen
on <level>:SOCKLISTEN:name:commands
112 1 Per Amundsen
113 4 Per Amundsen
on <level>:SOCKCLOSE:name:commands
114 1 Per Amundsen
115 4 Per Amundsen
on <level>:SIGNAL:name:command
116 1 Per Amundsen
117
on <level>:LOGON:*:<commands>
118
119
on <level>:DNS:<commands>
120
121
on <level>:CTCPREPLY:<matchtext>:<commands>
122
123
on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands>
124
125 5 Per Amundsen
on <level>:APPACTIVE:<commands>
126
127 1 Per Amundsen
on <level>:ACTIVE:<*#?=!@>:<commands>
128
129
on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands>
130
131
on <level>:INVITE:<#[,#]>:<commands>
132
133
on <level>:TABCOMP:<*#?=!@>:<commands>
134
135
on <level>:WALLOPS:<matchtext>:<commands>
136
137
on <level>:ERROR:<matchtext>:<commands>
138
139
on <level>:RAWMODE:#:<commands>
140
141
on <level>:DEHELP:<#[,#]>:<commands>
142
143
on <level>:HELP:<#[,#]>:<commands>
144
145
on <level>:DEVOICE:<#[,#]>:<commands>
146
147
on <level>:VOICE:<#[,#]>:<commands>
148
149
on <level>:DEOP:<#[,#]>:<commands>
150
151
on <level>:OP:<#[,#]>:<commands>
152
153
on <level>:INPUT:<*#?=!@>:<commands>
154
155
on <level>:UNBAN:<#[,#]>:<commands>
156
157
on <level>:BAN:<#[,#]>:<commands>
158
159
on <level>:CHAT:<matchtext>:<commands>
160
161
on <level>:KICK:<#[,#]>:<commands>
162
163
on <level>:NOTIFY:<commands>
164
165
on <level>:UNNOTIFY:<commands>
166
167
on <level>:NICK:<commands>
168
169
on <level>:QUIT:<commands>
170
171
on <level>:LOAD:<commands>
172
173
on <level>:UNLOAD:<commands>'
174
175
on <level>:START:<commands>
176
177
on <level>:EXIT:<commands>
178
179
on <level>:DNS:<commands>
180
181
on <level>:CONNECTFAIL:<commands>
182
183
on <level>:CONNECT:<commands>
184
185
on <level>:DISCONNECT:<commands>
186
187
on <level>:TOPIC:<#[,#]>:<commands>
188
189
on <level>:USERMODE:<commands>
190
191
on <level>:MODE:<#[,#]>:<commands>
192
193
on <level>:PART:<#[,#]>:<commands>
194
195
on <level>:JOIN:<#[,#]>:<commands>
196
197
on <level>:SNOTICE:<matchtext>:<commands>
198
199
on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands>
200
201
on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands>
202
203
on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
204 3 Per Amundsen
205 16 Per Amundsen
on <level>:MP3END:<commands>
206
207 19 Per Amundsen
on <level>:PARSELINE:<in|out|*>:matchtext:<commands>
208
209 24 Per Amundsen
on <level>:PING:<commands>
210
211
on <level>:PONG:<commands>
212
213 25 Per Amundsen
on <level>:FILESENT:<filename[,filename]>:<commands>
214
215
on <level>:FILERCVD:<filename[,filename]>:<commands>
216 1 Per Amundsen
217
on <level>:SENDFAIL:<filename[,filename]>:<commands>
218
219
on <level>:GETFAIL:<filename[,filename]>:<commands>
220
221
Triggers when the computer is about to suspend.
222
on <level>:SUSPEND:<commands>
223
224
Triggers when the computer resumes from suspend.
225
on <level>:RESUME:<commands>
226
227
Triggers when the chosen media player changes song.
228
on <level>:SONG:<commands>
229
230
Triggers whenever the config file is reloaded
231
on <level>:OPTIONS:<commands>
232
233
Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable.
234
on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands>
235
</pre>
236 34 Per Amundsen
237
h1. Missing events
238
239
AGENT
240
CHATOPEN
241
DCCSERVER
242
DEOWNER
243
MDIEND
244
NOSOUND
245
OWNER
246
WAVEEND
247
VCMD
248
PLAYEND
249
SERV
250
SERVCLOSE
251
SERVEROP
252
SERVOPEN
253
SOCKWRITE
254
UPDREAD
255
UPDWRITE