Project

General

Profile

Scripting Events » History » Version 38

Per Amundsen, 11/14/2015 01:29 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 36 Per Amundsen
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 37 Per Amundsen
Events in bold are AdiIRC only.
31
32 28 Per Amundsen
|^. [[on RAW]]
33
[[on CTCP]]
34 29 Per Amundsen
[[on ACTION]]
35
[[on ACTIVE]]
36
[[on APPACTIVE]]
37
[[on BAN]]
38 1 Per Amundsen
[[on CHAT]]
39 37 Per Amundsen
*[[on CLIENTTEXT]]*
40 30 Per Amundsen
[[on CLOSE]]
41 29 Per Amundsen
[[on CONNECT]]
42
[[on CONNECTFAIL]]
43
[[on CTCPREPLY]]
44
[[on DEHELP]]
45
[[on DEOP]]
46
[[on DEVOICE]]
47 30 Per Amundsen
 |^. [[on DIALOG]]
48 29 Per Amundsen
[[on DISCONNECT]]
49 1 Per Amundsen
[[on DNS]]
50 30 Per Amundsen
[[on DNS]]
51
[[on ERROR]]
52 29 Per Amundsen
[[on EXIT]]
53
[[on FILERCVD]]
54
[[on FILESENT]]
55
[[on GETFAIL]]
56
[[on HELP]]
57
[[on HOTLINK]]
58
[[on INPUT]]
59
[[on INVITE]]
60 1 Per Amundsen
[[on JOIN]]
61 30 Per Amundsen
[[on KEYDOWN]]
62
  |^. [[on KEYUP]]
63 29 Per Amundsen
[[on KICK]]
64
[[on LOAD]]
65
[[on LOGON]]
66
[[on MODE]]
67 1 Per Amundsen
[[on MP3END]]
68 29 Per Amundsen
[[on NICK]]
69 30 Per Amundsen
[[on NOTICE]]
70 29 Per Amundsen
[[on NOTIFY]]
71 1 Per Amundsen
[[on OP]]
72 30 Per Amundsen
[[on OPEN]]
73 37 Per Amundsen
*[[on OPTIONS]]*
74 29 Per Amundsen
[[on PARSELINE]]
75
[[on PART]]
76 30 Per Amundsen
[[on PING]]
77 1 Per Amundsen
 |^.  [[on PONG]]
78
[[on QUIT]]
79 29 Per Amundsen
[[on RAWMODE]]
80 37 Per Amundsen
*[[on RESUME]]*
81 1 Per Amundsen
[[on SENDFAIL]]
82 30 Per Amundsen
[[on SERVERMODE]]
83 29 Per Amundsen
[[on SIGNAL]]
84
[[on SNOTICE]]
85 1 Per Amundsen
[[on SOCKCLOSE]]
86
[[on SOCKLISTEN]]
87 29 Per Amundsen
[[on SOCKOPEN]]
88
[[on SOCKREAD]]
89 37 Per Amundsen
*[[on SONG]]*
90 29 Per Amundsen
[[on START]]
91 37 Per Amundsen
*[[on SUSPEND]]*
92 30 Per Amundsen
 |^.  [[on TABCOMP]]
93 29 Per Amundsen
[[on TEXT]]
94
[[on TOPIC]]
95 1 Per Amundsen
[[on UNBAN]]
96 29 Per Amundsen
[[on UNLOAD]]
97
[[on UNNOTIFY]]
98 30 Per Amundsen
[[on UNOTIFY]]
99 29 Per Amundsen
[[on USERMODE]]
100 1 Per Amundsen
[[on VOICE]]
101
[[on WALLOPS]]
102
 |
103 32 Per Amundsen
104 2 Per Amundsen
<pre>
105 1 Per Amundsen
raw <numeric>:<matchtext>:<commands>
106
107
ctcp <level>:<matchtext>:<*|#|?>:<commands>
108
109 4 Per Amundsen
on <level>:SOCKOPEN:name:commands
110 1 Per Amundsen
111 4 Per Amundsen
on <level>:SOCKREAD:name:commands
112 1 Per Amundsen
113 4 Per Amundsen
on <level>:SOCKLISTEN:name:commands
114 1 Per Amundsen
115 4 Per Amundsen
on <level>:SOCKCLOSE:name:commands
116 1 Per Amundsen
117 4 Per Amundsen
on <level>:SIGNAL:name:command
118 1 Per Amundsen
119
on <level>:LOGON:*:<commands>
120
121
on <level>:DNS:<commands>
122
123
on <level>:CTCPREPLY:<matchtext>:<commands>
124
125
on <level>:OPEN|CLOSE:<?|@|=|!|*>:<matchtext>:<commands>
126
127 5 Per Amundsen
on <level>:APPACTIVE:<commands>
128
129 1 Per Amundsen
on <level>:ACTIVE:<*#?=!@>:<commands>
130
131
on <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands>
132
133
on <level>:INVITE:<#[,#]>:<commands>
134
135
on <level>:TABCOMP:<*#?=!@>:<commands>
136
137
on <level>:WALLOPS:<matchtext>:<commands>
138
139
on <level>:ERROR:<matchtext>:<commands>
140
141
on <level>:RAWMODE:#:<commands>
142
143
on <level>:DEHELP:<#[,#]>:<commands>
144
145
on <level>:HELP:<#[,#]>:<commands>
146
147
on <level>:DEVOICE:<#[,#]>:<commands>
148
149
on <level>:VOICE:<#[,#]>:<commands>
150
151
on <level>:DEOP:<#[,#]>:<commands>
152
153
on <level>:OP:<#[,#]>:<commands>
154
155
on <level>:INPUT:<*#?=!@>:<commands>
156
157
on <level>:UNBAN:<#[,#]>:<commands>
158
159
on <level>:BAN:<#[,#]>:<commands>
160
161
on <level>:CHAT:<matchtext>:<commands>
162
163
on <level>:KICK:<#[,#]>:<commands>
164
165
on <level>:NOTIFY:<commands>
166
167
on <level>:UNNOTIFY:<commands>
168
169
on <level>:NICK:<commands>
170
171
on <level>:QUIT:<commands>
172
173
on <level>:LOAD:<commands>
174
175
on <level>:UNLOAD:<commands>'
176
177
on <level>:START:<commands>
178
179
on <level>:EXIT:<commands>
180
181
on <level>:DNS:<commands>
182
183
on <level>:CONNECTFAIL:<commands>
184
185
on <level>:CONNECT:<commands>
186
187
on <level>:DISCONNECT:<commands>
188
189
on <level>:TOPIC:<#[,#]>:<commands>
190
191
on <level>:USERMODE:<commands>
192
193
on <level>:MODE:<#[,#]>:<commands>
194
195
on <level>:PART:<#[,#]>:<commands>
196
197
on <level>:JOIN:<#[,#]>:<commands>
198
199
on <level>:SNOTICE:<matchtext>:<commands>
200
201
on <level>:NOTICE:<matchtext>:<*><?><#[,#]>:<commands>
202
203
on <level>:ACTION:<matchtext>:<*><?><#[,#]>:<commands>
204
205
on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
206 3 Per Amundsen
207 16 Per Amundsen
on <level>:MP3END:<commands>
208
209 19 Per Amundsen
on <level>:PARSELINE:<in|out|*>:matchtext:<commands>
210
211 24 Per Amundsen
on <level>:PING:<commands>
212
213
on <level>:PONG:<commands>
214
215 25 Per Amundsen
on <level>:FILESENT:<filename[,filename]>:<commands>
216
217
on <level>:FILERCVD:<filename[,filename]>:<commands>
218 1 Per Amundsen
219
on <level>:SENDFAIL:<filename[,filename]>:<commands>
220
221
on <level>:GETFAIL:<filename[,filename]>:<commands>
222
223
Triggers when the chosen media player changes song.
224
on <level>:SONG:<commands>
225
226
Triggers whenever the config file is reloaded
227
on <level>:OPTIONS:<commands>
228
229
Triggers whenever the client sends a client text to any window, $1- will hold the original client text, haltable.
230
on <level>:CLIENTTEXT:<matchtext>:<*#?=!@>:<commands>
231
</pre>
232 34 Per Amundsen
233
h1. Missing events
234
235
AGENT
236
CHATOPEN
237
DCCSERVER
238
DEOWNER
239
MDIEND
240
NOSOUND
241
OWNER
242
WAVEEND
243
VCMD
244
PLAYEND
245
SERV
246
SERVCLOSE
247
SERVEROP
248
SERVOPEN
249
SOCKWRITE
250
UPDREAD
251
UPDWRITE