Scripting Commands » History » Version 176
Per Amundsen, 07/08/2018 06:24 PM
1 | 162 | Mr. BS | {{css |
---|---|---|---|
2 | body { |
||
3 | counter-reset: count; |
||
4 | } |
||
5 | .tcount { |
||
6 | counter-reset: adi; |
||
7 | } |
||
8 | .tcount a { |
||
9 | counter-increment: count; |
||
10 | } |
||
11 | .tcount strong { |
||
12 | counter-increment: adi; |
||
13 | } |
||
14 | .acounter::before { |
||
15 | content: "Total: " counter(count) " commands, " counter(adi) " are AdiIRC exclusive. "; |
||
16 | } |
||
17 | }} |
||
18 | |||
19 | 73 | Per Amundsen | {{>toc}} |
20 | 1 | Per Amundsen | |
21 | h1. Scripting Commands |
||
22 | 2 | Per Amundsen | |
23 | Parameters in [x] means they are optional. |
||
24 | Parameters in <x> means they are required. |
||
25 | Parameters with a x|y means either x or y can be used. |
||
26 | 3 | Per Amundsen | |
27 | Click on a command to read more about it. |
||
28 | 154 | Per Amundsen | |
29 | 27 | Per Amundsen | _Commands in bold is AdiIRC only._ |
30 | 1 | Per Amundsen | |
31 | 162 | Mr. BS | table(tcount). |
32 | |[[/abook]] |
||
33 | 123 | Per Amundsen | *[[/aclear]]* |
34 | 1 | Per Amundsen | [[/action]] |
35 | 27 | Per Amundsen | *[[/advertise]]* |
36 | 1 | Per Amundsen | [[/ajinvite]] |
37 | [[/alias]] |
||
38 | [[/aline]] |
||
39 | [[/amark]] |
||
40 | [[/ame]] |
||
41 | [[/amsg]] |
||
42 | 84 | Per Amundsen | *[[/allnick]]* |
43 | 1 | Per Amundsen | [[/anick]] |
44 | 172 | Per Amundsen | [[/aop]] |
45 | 74 | Per Amundsen | [[/auser]] |
46 | 136 | Per Amundsen | *[[/autoconnect]]* |
47 | 53 | Per Amundsen | [[/autojoin]] |
48 | 172 | Per Amundsen | [[/avoice]] |
49 | 27 | Per Amundsen | *[[/aquit]]* |
50 | 1 | Per Amundsen | [[/away]] |
51 | 27 | Per Amundsen | *[[/back]]* |
52 | 1 | Per Amundsen | [[/background]] |
53 | [[/ban]] |
||
54 | 27 | Per Amundsen | *[[/banlist]]* |
55 | 1 | Per Amundsen | [[/bcopy]] |
56 | [[/beep]] |
||
57 | 27 | Per Amundsen | *[[/betaup]]* |
58 | *[[/bin2txt]]* |
||
59 | 1 | Per Amundsen | [[/bindip]] |
60 | [[/bread]] |
||
61 | [[/break]] |
||
62 | [[/breplace]] |
||
63 | [[/bset]] |
||
64 | [[/btrunc]] |
||
65 | [[/bunset]] |
||
66 | 27 | Per Amundsen | *[[/bw]]* |
67 | 1 | Per Amundsen | [[/bwrite]] |
68 | [[/channel]] |
||
69 | 147 | Per Amundsen | *[[/channels]]* |
70 | 27 | Per Amundsen | *[[/charset]]* |
71 | 1 | Per Amundsen | [[/clear]] |
72 | [[/clearall]] |
||
73 | [[/cline]] |
||
74 | [[/clipboard]] |
||
75 | 141 | Per Amundsen | [[/close]] |
76 | 1 | Per Amundsen | [[/cnick]] |
77 | 172 | Per Amundsen | | [[/color]] |
78 | 1 | Per Amundsen | [[/colour]] |
79 | 172 | Per Amundsen | [[/comclose]] |
80 | 145 | Per Amundsen | [[/comlist]] |
81 | 123 | Per Amundsen | [[/comopen]] |
82 | 84 | Per Amundsen | [[/comreg]] |
83 | 74 | Per Amundsen | *[[/config]]* |
84 | 32 | Per Amundsen | [[/continue]] |
85 | 66 | Per Amundsen | [[/copy]] |
86 | 1 | Per Amundsen | [[/ctcp]] |
87 | [[/ctcps]] |
||
88 | 57 | Per Amundsen | [[/ctcpreply]] |
89 | 158 | Per Amundsen | *[[/cycleall]]* |
90 | 54 | Per Amundsen | [[/dcc]] |
91 | 52 | Per Amundsen | [[/dde]] |
92 | 41 | Per Amundsen | [[/ddeserver]] |
93 | [[/debug]] |
||
94 | 32 | Per Amundsen | [[/dec]] |
95 | 27 | Per Amundsen | *[[/dehalfop]]* |
96 | *[[/deop]]* |
||
97 | 1 | Per Amundsen | [[/describe]] |
98 | 27 | Per Amundsen | *[[/desop]]* |
99 | *[[/devoice]]* |
||
100 | 1 | Per Amundsen | [[/dialog]] |
101 | [[/did]] |
||
102 | [[/didtok]] |
||
103 | [[/disable]] |
||
104 | [[/disconnect]] |
||
105 | 94 | Per Amundsen | [[/dlevel]] |
106 | 1 | Per Amundsen | [[/dline]] |
107 | [[/dll]] |
||
108 | [[/dns]] |
||
109 | 27 | Per Amundsen | *[[/dock]]* |
110 | *[[/dockpanels]]* |
||
111 | 128 | Per Amundsen | *[[/download]]* |
112 | 1 | Per Amundsen | [[/drawcopy]] |
113 | [[/drawdot]] |
||
114 | [[/drawfill]] |
||
115 | [[/drawline]] |
||
116 | [[/drawpic]] |
||
117 | [[/drawrect]] |
||
118 | [[/drawreplace]] |
||
119 | [[/drawrot]] |
||
120 | [[/drawsave]] |
||
121 | [[/drawscroll]] |
||
122 | 172 | Per Amundsen | | [[/drawtext]] |
123 | 136 | Per Amundsen | [[/ebeeps]] |
124 | 172 | Per Amundsen | [[/echo]] |
125 | 145 | Per Amundsen | *[[/echomonitor]]* |
126 | 123 | Per Amundsen | *[[/echox]]* |
127 | 97 | Per Amundsen | *[[/edit]]* |
128 | 94 | Per Amundsen | [[/editbox]] |
129 | 84 | Per Amundsen | [[/else]] |
130 | 74 | Per Amundsen | [[/elseif]] |
131 | 88 | Per Amundsen | [[/emailaddr]] |
132 | 66 | Per Amundsen | [[/enable]] |
133 | 1 | Per Amundsen | *[[/encoding]]* |
134 | [[/events]] |
||
135 | [[/exit]] |
||
136 | 60 | Per Amundsen | *[[/fakeraw]]* |
137 | 57 | Per Amundsen | [[/fclose]] |
138 | 144 | Per Amundsen | *[[/fget]]* |
139 | 54 | Per Amundsen | [[/filter]] |
140 | 52 | Per Amundsen | [[/findtext]] |
141 | 160 | Per Amundsen | [[/firewall]] |
142 | 50 | Per Amundsen | [[/flash]] |
143 | 1 | Per Amundsen | [[/flist]] |
144 | [[/flushini]] |
||
145 | 67 | Per Amundsen | [[/font]] |
146 | 124 | Per Amundsen | [[/fopen]] |
147 | 39 | Per Amundsen | [[/fseek]] |
148 | 144 | Per Amundsen | [[/fsend]] |
149 | 85 | Per Amundsen | [[/fullname]] |
150 | 45 | Per Amundsen | *[[/fullscreen]]* |
151 | 174 | Per Amundsen | [[/fupdate]] |
152 | 36 | Per Amundsen | [[/fwrite]] |
153 | 33 | Per Amundsen | *[[/gcmem]]* |
154 | 167 | Per Amundsen | *[[/globalkeys]]* |
155 | 32 | Per Amundsen | *[[/google]]* |
156 | 23 | Per Amundsen | [[/goto]] |
157 | 143 | Per Amundsen | [[/groups]] |
158 | 77 | Per Amundsen | [[/guser]] |
159 | 1 | Per Amundsen | [[/hadd]] |
160 | 27 | Per Amundsen | *[[/halfop]]* |
161 | 1 | Per Amundsen | [[/halt]] |
162 | [[/haltdef]] |
||
163 | [[/hdec]] |
||
164 | [[/hdel]] |
||
165 | [[/help]] |
||
166 | [[/hfree]] |
||
167 | 174 | Per Amundsen | | *[[/highlight]]* |
168 | [[/hinc]] |
||
169 | 1 | Per Amundsen | [[/hload]] |
170 | 172 | Per Amundsen | [[/hmake]] |
171 | 167 | Per Amundsen | [[/hop]] |
172 | 160 | Per Amundsen | [[/hotlink]] |
173 | 157 | Per Amundsen | [[/hsave]] |
174 | 145 | Per Amundsen | [[/ialmark]] |
175 | 1 | Per Amundsen | [[/identd]] |
176 | 128 | Per Amundsen | *[[/icon]]* |
177 | 140 | Per Amundsen | [[/if]] |
178 | 124 | Per Amundsen | [[/ignore]] |
179 | 123 | Per Amundsen | [[/iline]] |
180 | 122 | Per Amundsen | [[/inc]] |
181 | 141 | Per Amundsen | *[[/inick]]* |
182 | 175 | Per Amundsen | *[[/inlineimage]]* |
183 | 96 | Per Amundsen | [[/invite]] |
184 | 94 | Per Amundsen | [[/iuser]] |
185 | 89 | Per Amundsen | [[/join]] |
186 | 168 | Per Amundsen | *[[/kblayout]]* |
187 | 88 | Per Amundsen | [[/kick]] |
188 | 85 | Per Amundsen | [[/kill]] |
189 | 84 | Per Amundsen | *[[/lag]]* |
190 | 126 | Per Amundsen | [[/leave]] |
191 | 149 | Per Amundsen | *[[/linemarker]]* |
192 | 78 | Per Amundsen | [[/linesep]] |
193 | 77 | Per Amundsen | [[/list]] |
194 | 74 | Per Amundsen | [[/load]] |
195 | 67 | Per Amundsen | [[/loadbuf]] |
196 | 66 | Per Amundsen | *[[/lock]]* |
197 | 130 | Per Amundsen | [[/log]] |
198 | 1 | Per Amundsen | *[[/logs]]* |
199 | [[/logview]] |
||
200 | [[/markall]] |
||
201 | 69 | Per Amundsen | [[/mdi]] |
202 | 57 | Per Amundsen | [[/me]] |
203 | 1 | Per Amundsen | [[/menubar]] |
204 | [[/mkdir]] |
||
205 | 85 | Per Amundsen | [[/mnick]] |
206 | 50 | Per Amundsen | [[/mode]] |
207 | 1 | Per Amundsen | [[/msg]] |
208 | *[[/msgbox]]* |
||
209 | *[[/mute]]* |
||
210 | *[[/nextunread]]* |
||
211 | [[/nick]] |
||
212 | 175 | Per Amundsen | | [[/nickcolumn]] |
213 | [[/nicklist]] |
||
214 | 174 | Per Amundsen | *[[/nmsg]]* |
215 | 171 | Per Amundsen | [[/noop]] |
216 | 172 | Per Amundsen | [[/notice]] |
217 | 168 | Per Amundsen | [[/notify]] |
218 | 167 | Per Amundsen | *[[/np]]* |
219 | 160 | Per Amundsen | *[[/oline]]* |
220 | 149 | Per Amundsen | [[/omsg]] |
221 | 145 | Per Amundsen | [[/onotice]] |
222 | 132 | Per Amundsen | [[/op]] |
223 | 130 | Per Amundsen | *[[/options]]* |
224 | 128 | Per Amundsen | [[/parseline]] |
225 | 126 | Per Amundsen | [[/part]] |
226 | 125 | Per Amundsen | [[/partall]] |
227 | 123 | Per Amundsen | *[[/paths]]* |
228 | 169 | Per Amundsen | *[[/pause]]* |
229 | 122 | Per Amundsen | [[/perform]] |
230 | 121 | Per Amundsen | *[[/pgoogle]]* |
231 | 118 | Per Amundsen | *[[/plugins]]* |
232 | 176 | Per Amundsen | [[/play]] |
233 | 99 | Per Amundsen | *[[/priv]]* |
234 | 137 | Per Amundsen | [[/proxy]] |
235 | 96 | Per Amundsen | [[/query]] |
236 | 95 | Per Amundsen | [[/queryrn]] |
237 | 94 | Per Amundsen | *[[/quickconnect]]* |
238 | 89 | Per Amundsen | *[[/quicksave]]* |
239 | 88 | Per Amundsen | [[/quit]] |
240 | 1 | Per Amundsen | [[/quote]] |
241 | 85 | Per Amundsen | [[/raw]] |
242 | 84 | Per Amundsen | *[[/rawx]]* |
243 | *[[/rawlog]]* |
||
244 | 85 | Per Amundsen | *[[/realname]]* |
245 | 77 | Per Amundsen | *[[/reconnect]]* |
246 | 173 | Per Amundsen | *[[/refreshsong]]* |
247 | 74 | Per Amundsen | *[[/rejoin]]* |
248 | 69 | Per Amundsen | [[/reload]] |
249 | 67 | Per Amundsen | [[/remini]] |
250 | 66 | Per Amundsen | [[/remote]] |
251 | 1 | Per Amundsen | [[/remove]] |
252 | [[/rename]] |
||
253 | [[/renwin]] |
||
254 | [[/reseterror]] |
||
255 | [[/resetidle]] |
||
256 | *[[/resolve]]* |
||
257 | 176 | Per Amundsen | |^. *[[/restart]]* |
258 | [[/return]] |
||
259 | 175 | Per Amundsen | [[/returnex]] |
260 | 174 | Per Amundsen | [[/rlevel]] |
261 | 173 | Per Amundsen | [[/rline]] |
262 | 171 | Per Amundsen | [[/rmdir]] |
263 | 172 | Per Amundsen | [[/run]] |
264 | 169 | Per Amundsen | [[/ruser]] |
265 | 168 | Per Amundsen | [[/say]] |
266 | 167 | Per Amundsen | [[/savebuf]] |
267 | 160 | Per Amundsen | [[/saveini]] |
268 | 149 | Per Amundsen | [[/scid]] |
269 | 145 | Per Amundsen | [[/scon]] |
270 | 132 | Per Amundsen | *[[/scripts]]* |
271 | 164 | Per Amundsen | *[[/scrolltext]]* |
272 | 130 | Per Amundsen | *[[/search]]* |
273 | 128 | Per Amundsen | [[/server]] |
274 | 126 | Per Amundsen | *[[/serverlist]]* |
275 | 124 | Per Amundsen | [[/set]] |
276 | 123 | Per Amundsen | *[[/setconfig]]* |
277 | 122 | Per Amundsen | [[/setlayer]] |
278 | 123 | Per Amundsen | *[[/setoption]]* |
279 | *[[/showadiirc]]* |
||
280 | 148 | Per Amundsen | *[[/showmenu]]* |
281 | 98 | Per Amundsen | [[/showmirc]] |
282 | 96 | Per Amundsen | [[/signal]] |
283 | 95 | Per Amundsen | *[[/slap]]* |
284 | 94 | Per Amundsen | *[[/sleep]]* |
285 | 89 | Per Amundsen | [[/sline]] |
286 | 88 | Per Amundsen | [[/sockaccept]] |
287 | 1 | Per Amundsen | [[/sockclose]] |
288 | [[/socklist]] |
||
289 | 85 | Per Amundsen | [[/socklisten]] |
290 | 84 | Per Amundsen | [[/sockmark]] |
291 | 82 | Per Amundsen | [[/sockopen]] |
292 | 80 | Per Amundsen | [[/sockpause]] |
293 | 79 | Per Amundsen | [[/sockread]] |
294 | 1 | Per Amundsen | [[/sockrename]] |
295 | [[/sockudp]] |
||
296 | [[/sockwrite]] |
||
297 | *[[/sop]]* |
||
298 | [[/splay]] |
||
299 | *[[/statusbar]]* |
||
300 | 66 | Per Amundsen | [[/switchbar]] |
301 | 1 | Per Amundsen | *[[/tab]]* |
302 | 176 | Per Amundsen | |^. *[[/themes]]* |
303 | [[/time]] |
||
304 | 175 | Per Amundsen | [[/timestamp]] |
305 | 174 | Per Amundsen | [[/timer]] |
306 | 173 | Per Amundsen | [[/tip]] |
307 | 171 | Per Amundsen | [[/tips]] |
308 | 172 | Per Amundsen | [[/titlebar]] |
309 | 169 | Per Amundsen | [[/tokenize]] |
310 | 168 | Per Amundsen | [[/toolbar]] |
311 | 167 | Per Amundsen | [[/topic]] |
312 | 164 | Per Amundsen | *[[/topicbox]]* |
313 | 160 | Per Amundsen | [[/treebar]] |
314 | 149 | Per Amundsen | [[/ulist]] |
315 | 148 | Per Amundsen | *[[/usernick]]* |
316 | 145 | Per Amundsen | *[[/txt2bin]]* |
317 | 128 | Per Amundsen | *[[/unban]]* |
318 | 127 | Per Amundsen | *[[/unignore]]* |
319 | 126 | Per Amundsen | [[/unload]] |
320 | 124 | Per Amundsen | *[[/unnotify]]* |
321 | 123 | Per Amundsen | [[/unset]] |
322 | 122 | Per Amundsen | [[/unsetall]] |
323 | *[[/update]]* |
||
324 | 135 | Per Amundsen | [[/updatenl]] |
325 | 129 | Per Amundsen | [[/url]] |
326 | 118 | Per Amundsen | [[/uwho]] |
327 | 98 | Per Amundsen | [[/var]] |
328 | 96 | Per Amundsen | *[[/vars]]* |
329 | 95 | Per Amundsen | *[[/viewlog]]* |
330 | 94 | Per Amundsen | *[[/voice]]* |
331 | 91 | Per Amundsen | [[/vol]] |
332 | 90 | Per Amundsen | *[[/wdown]]* |
333 | 89 | Per Amundsen | [[/while]] |
334 | 88 | Per Amundsen | [[/window]] |
335 | 87 | Per Amundsen | *[[/wjump]]* |
336 | 1 | Per Amundsen | *[[/wnext]]* |
337 | *[[/wpause]]* |
||
338 | 85 | Per Amundsen | *[[/wplay]]* |
339 | 84 | Per Amundsen | *[[/wprev]]* |
340 | 82 | Per Amundsen | [[/write]] |
341 | 1 | Per Amundsen | [[/writeini]] |
342 | *[[/wsearch]]* |
||
343 | 79 | Per Amundsen | *[[/wseekf]]* |
344 | 78 | Per Amundsen | *[[/wseekr]]* |
345 | 77 | Per Amundsen | *[[/wselect]]* |
346 | 1 | Per Amundsen | *[[/wstop]]* |
347 | 176 | Per Amundsen | |^. *[[/wup]]* |
348 | *[[/zip]]* |
||
349 | 162 | Mr. BS | | |
350 | |||
351 | %(acounter) % |
||
352 | 1 | Per Amundsen | |
353 | 150 | Per Amundsen | h2. System information Commands |
354 | 16 | Per Amundsen | |
355 | Output from these are set in [[Options_Dialog|Options]] -> [[Sysinfo Options|Sysinfo]] and are merely convenient aliases. |
||
356 | 1 | Per Amundsen | |
357 | 31 | Per Amundsen | /sysinfo |
358 | 1 | Per Amundsen | /gfxinfo |
359 | /cpuinfo |
||
360 | /meminfo |
||
361 | /diskinfo |
||
362 | /audioinfo |
||
363 | /uptime |
||
364 | 150 | Per Amundsen | /bw |
365 | 1 | Per Amundsen | |
366 | 138 | Per Amundsen | h2. Missing Commands |
367 | 1 | Per Amundsen | |
368 | /creq |
||
369 | /dccserver |
||
370 | 166 | Per Amundsen | /drawsize |
371 | 1 | Per Amundsen | /dqwindow |
372 | /flood |
||
373 | /flush |
||
374 | /fserve |
||
375 | /ghide |
||
376 | /gload |
||
377 | /gopts |
||
378 | /gplay |
||
379 | /gpoint |
||
380 | /gqreq |
||
381 | /gshow |
||
382 | /gsize |
||
383 | /gstop |
||
384 | /gtalk |
||
385 | 119 | Per Amundsen | /gunload |
386 | 1 | Per Amundsen | /ial |
387 | /ialclear |
||
388 | 30 | Per Amundsen | /links |
389 | 1 | Per Amundsen | /localinfo |
390 | /pdcc |
||
391 | /play |
||
392 | /playctrl |
||
393 | /pop |
||
394 | /protect |
||
395 | /pvoice |
||
396 | /qme |
||
397 | /qmsg |
||
398 | /save |
||
399 | /sound |
||
400 | /speak |
||
401 | /sreq |
||
402 | /strip |
||
403 | /tnick |
||
404 | /tray |
||
405 | /vcadd |
||
406 | /vcmd |
||
407 | /vcrem |
||
408 | /winhelp |
||
409 | |||
410 | 150 | Per Amundsen | h2. Command prefixes |
411 | |||
412 | /! prefix will execute the internal command, even if there is a alias with the same name. |
||
413 | |||
414 | Example: |
||
415 | |||
416 | <pre> |
||
417 | ; Override the /me command, |
||
418 | alias me { |
||
419 | ; use the /! prefix to call the internal command. |
||
420 | /!me $1- |
||
421 | } |
||
422 | </pre> |
||
423 | |||
424 | /. prefix can be used to silence the output from many command. |
||
425 | |||
426 | Example: |
||
427 | |||
428 | <pre> |
||
429 | 155 | Per Amundsen | /.msg #channel This message will be hidden from your client, but still sent to the server. |
430 | 150 | Per Amundsen | </pre> |
431 | |||
432 | Both prefix's can be used at the same time. |
||
433 | |||
434 | Example: |
||
435 | |||
436 | <pre> |
||
437 | 155 | Per Amundsen | /!.msg #channel This message will be hidden from your client, but still sent to the server. |
438 | 150 | Per Amundsen | </pre> |
439 | |||
440 | h2. Evaluate identifiers from Editbox |
||
441 | 105 | Per Amundsen | |
442 | 156 | Per Amundsen | Typing a command in the Editbox with double slashes// will evaluate [[Scripting Identifiers|$identifiers]] in the line before running it. |
443 | 105 | Per Amundsen | E.g //echo -ag My nick is $me |
444 | |||
445 | 156 | Per Amundsen | You can also [[tabcomplete]] [[Scripting Identifiers|$identifiers]] manually using $me<tab>. |
446 | 107 | Per Amundsen | |
447 | 151 | Per Amundsen | h2. Creating a new command |
448 | 107 | Per Amundsen | |
449 | 112 | Per Amundsen | You can create a new command by opening the menu Tools -> Edit Aliases. |
450 | 107 | Per Amundsen | |
451 | 108 | Per Amundsen | The format for the command is <command> <script to execute>. |
452 | 107 | Per Amundsen | |
453 | *Example* |
||
454 | |||
455 | <pre> |
||
456 | 108 | Per Amundsen | ; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'. |
457 | 1 | Per Amundsen | /p /part $chan |
458 | 108 | Per Amundsen | </pre> |
459 | |||
460 | 110 | Per Amundsen | You can also add a command from the script editor, the syntax there is alias <command> <script to execute> |
461 | 108 | Per Amundsen | |
462 | *Example* |
||
463 | |||
464 | <pre> |
||
465 | ; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'. |
||
466 | ; Same as previous example. |
||
467 | alias p /part $chan |
||
468 | </pre> |
||
469 | |||
470 | 111 | Per Amundsen | If you want to use scripts with multiple lines, you can enclose them with {} brackets in both Edit Aliases and Script Editor. |
471 | 108 | Per Amundsen | |
472 | *Example* |
||
473 | <pre> |
||
474 | ; Edit Aliases |
||
475 | 109 | Per Amundsen | /p { |
476 | 108 | Per Amundsen | /echo -ag I am parting $chan |
477 | /part $chan |
||
478 | } |
||
479 | |||
480 | ; Script editor |
||
481 | alias p { |
||
482 | /echo -ag I am parting $chan |
||
483 | /part $chan |
||
484 | } |
||
485 | </pre> |
||
486 | |||
487 | Almost all built-in commands can be overridden to execute your own script. |
||
488 | |||
489 | *Example* |
||
490 | |||
491 | <pre> |
||
492 | ; Create your own /part command |
||
493 | alias part { |
||
494 | /echo -ag I am parting $chan |
||
495 | raw PART $chan |
||
496 | } |
||
497 | |||
498 | 114 | Per Amundsen | ; Create your own /part command, but execute the built-in /part command after executing your own script. |
499 | 108 | Per Amundsen | alias part { |
500 | /echo -ag I am parting $chan |
||
501 | |||
502 | ; Execute the built-in part command |
||
503 | !part $chan |
||
504 | } |
||
505 | 107 | Per Amundsen | </pre> |
506 | 113 | Per Amundsen | |
507 | A command can also be called as a $identifier. |
||
508 | |||
509 | *Example* |
||
510 | |||
511 | <pre> |
||
512 | ; Create a command. |
||
513 | alias mycommand { |
||
514 | 115 | Per Amundsen | echo -ag I was called as a $iif($isid,identifier,command) |
515 | 113 | Per Amundsen | } |
516 | |||
517 | ; Call the command as identifier. |
||
518 | //noop $mycommand |
||
519 | |||
520 | 116 | Per Amundsen | ; Call the command as a command. |
521 | 113 | Per Amundsen | /mycommand |
522 | </pre> |