Project

General

Profile

Scripting Commands » History » Version 178

Per Amundsen, 07/12/2018 12:14 PM

1 162 Mr. BS
{{css
2 162 Mr. BS
body {
3 162 Mr. BS
  counter-reset: count;
4 162 Mr. BS
}
5 162 Mr. BS
.tcount {
6 162 Mr. BS
  counter-reset: adi;
7 162 Mr. BS
}
8 162 Mr. BS
.tcount a {
9 162 Mr. BS
  counter-increment: count;
10 162 Mr. BS
}
11 162 Mr. BS
.tcount strong {
12 162 Mr. BS
  counter-increment: adi;
13 162 Mr. BS
}
14 162 Mr. BS
.acounter::before {
15 162 Mr. BS
  content: "Total: " counter(count) " commands, " counter(adi) " are AdiIRC exclusive. ";
16 162 Mr. BS
}
17 162 Mr. BS
}}
18 162 Mr. BS
19 73 Per Amundsen
{{>toc}}
20 1 Per Amundsen
21 1 Per Amundsen
h1. Scripting Commands
22 2 Per Amundsen
23 2 Per Amundsen
Parameters in [x] means they are optional.
24 2 Per Amundsen
Parameters in <x> means they are required.
25 2 Per Amundsen
Parameters with a x|y means either x or y can be used.
26 3 Per Amundsen
27 3 Per Amundsen
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 162 Mr. BS
|[[/abook]]
33 123 Per Amundsen
*[[/aclear]]*
34 1 Per Amundsen
[[/action]]
35 27 Per Amundsen
*[[/advertise]]*
36 1 Per Amundsen
[[/ajinvite]]
37 1 Per Amundsen
[[/alias]]
38 1 Per Amundsen
[[/aline]]
39 1 Per Amundsen
[[/amark]]
40 1 Per Amundsen
[[/ame]]
41 1 Per Amundsen
[[/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 1 Per Amundsen
[[/ban]]
54 27 Per Amundsen
*[[/banlist]]*
55 1 Per Amundsen
[[/bcopy]]
56 1 Per Amundsen
[[/beep]]
57 27 Per Amundsen
*[[/betaup]]*
58 27 Per Amundsen
*[[/bin2txt]]*
59 1 Per Amundsen
[[/bindip]]
60 1 Per Amundsen
[[/bread]]
61 1 Per Amundsen
[[/break]]
62 1 Per Amundsen
[[/breplace]]
63 1 Per Amundsen
[[/bset]]
64 1 Per Amundsen
[[/btrunc]]
65 1 Per Amundsen
[[/bunset]]
66 27 Per Amundsen
*[[/bw]]*
67 1 Per Amundsen
[[/bwrite]]
68 1 Per Amundsen
[[/channel]]
69 147 Per Amundsen
*[[/channels]]*
70 27 Per Amundsen
*[[/charset]]*
71 1 Per Amundsen
[[/clear]]
72 1 Per Amundsen
[[/clearall]]
73 1 Per Amundsen
[[/cline]]
74 1 Per Amundsen
[[/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 1 Per Amundsen
[[/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 41 Per Amundsen
[[/debug]]
94 32 Per Amundsen
[[/dec]]
95 27 Per Amundsen
*[[/dehalfop]]*
96 27 Per Amundsen
*[[/deop]]*
97 1 Per Amundsen
[[/describe]]
98 27 Per Amundsen
*[[/desop]]*
99 27 Per Amundsen
*[[/devoice]]*
100 1 Per Amundsen
[[/dialog]]
101 1 Per Amundsen
[[/did]]
102 1 Per Amundsen
[[/didtok]]
103 1 Per Amundsen
[[/disable]]
104 1 Per Amundsen
[[/disconnect]]
105 94 Per Amundsen
[[/dlevel]]
106 1 Per Amundsen
[[/dline]]
107 1 Per Amundsen
[[/dll]]
108 1 Per Amundsen
[[/dns]]
109 27 Per Amundsen
*[[/dock]]*
110 27 Per Amundsen
*[[/dockpanels]]*
111 128 Per Amundsen
*[[/download]]*
112 1 Per Amundsen
[[/drawcopy]]
113 1 Per Amundsen
[[/drawdot]]
114 1 Per Amundsen
[[/drawfill]]
115 1 Per Amundsen
[[/drawline]]
116 1 Per Amundsen
[[/drawpic]]
117 1 Per Amundsen
[[/drawrect]]
118 1 Per Amundsen
[[/drawreplace]]
119 1 Per Amundsen
[[/drawrot]]
120 1 Per Amundsen
[[/drawsave]]
121 1 Per Amundsen
[[/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 1 Per Amundsen
[[/events]]
135 1 Per Amundsen
[[/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 1 Per Amundsen
[[/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 1 Per Amundsen
[[/haltdef]]
163 1 Per Amundsen
[[/hdec]]
164 1 Per Amundsen
[[/hdel]]
165 1 Per Amundsen
[[/help]]
166 1 Per Amundsen
[[/hfree]]
167 174 Per Amundsen
 | *[[/highlight]]*
168 174 Per Amundsen
[[/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 1 Per Amundsen
[[/logview]]
200 1 Per Amundsen
[[/markall]]
201 69 Per Amundsen
[[/mdi]]
202 57 Per Amundsen
[[/me]]
203 1 Per Amundsen
[[/menubar]]
204 1 Per Amundsen
[[/mkdir]]
205 85 Per Amundsen
[[/mnick]]
206 50 Per Amundsen
[[/mode]]
207 1 Per Amundsen
[[/msg]]
208 1 Per Amundsen
*[[/msgbox]]*
209 1 Per Amundsen
*[[/mute]]*
210 1 Per Amundsen
*[[/nextunread]]*
211 1 Per Amundsen
[[/nick]]
212 175 Per Amundsen
 | [[/nickcolumn]]
213 175 Per Amundsen
[[/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 84 Per Amundsen
*[[/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 1 Per Amundsen
[[/rename]]
253 1 Per Amundsen
[[/renwin]]
254 1 Per Amundsen
[[/reseterror]]
255 1 Per Amundsen
[[/resetidle]]
256 1 Per Amundsen
*[[/resolve]]*
257 176 Per Amundsen
 |^. *[[/restart]]*
258 176 Per Amundsen
[[/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 123 Per Amundsen
*[[/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 1 Per Amundsen
[[/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 1 Per Amundsen
[[/sockudp]]
296 1 Per Amundsen
[[/sockwrite]]
297 1 Per Amundsen
*[[/sop]]*
298 1 Per Amundsen
[[/splay]]
299 1 Per Amundsen
*[[/statusbar]]*
300 66 Per Amundsen
[[/switchbar]]
301 1 Per Amundsen
*[[/tab]]*
302 176 Per Amundsen
 |^. *[[/themes]]*
303 176 Per Amundsen
[[/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 122 Per Amundsen
*[[/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 1 Per Amundsen
*[[/wpause]]*
338 85 Per Amundsen
*[[/wplay]]*
339 84 Per Amundsen
*[[/wprev]]*
340 82 Per Amundsen
[[/write]]
341 1 Per Amundsen
[[/writeini]]
342 1 Per Amundsen
*[[/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 176 Per Amundsen
*[[/zip]]*
349 162 Mr. BS
 |
350 162 Mr. BS
351 162 Mr. BS
%(acounter) %
352 1 Per Amundsen
353 150 Per Amundsen
h2. System information Commands
354 16 Per Amundsen
355 16 Per Amundsen
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 1 Per Amundsen
/cpuinfo
360 1 Per Amundsen
/meminfo
361 1 Per Amundsen
/diskinfo
362 1 Per Amundsen
/audioinfo
363 1 Per Amundsen
/uptime
364 150 Per Amundsen
/bw
365 1 Per Amundsen
366 138 Per Amundsen
h2. Missing Commands
367 1 Per Amundsen
368 1 Per Amundsen
/creq
369 1 Per Amundsen
/dccserver
370 166 Per Amundsen
/drawsize
371 1 Per Amundsen
/dqwindow
372 1 Per Amundsen
/flood
373 1 Per Amundsen
/flush
374 1 Per Amundsen
/fserve
375 1 Per Amundsen
/ghide
376 1 Per Amundsen
/gload
377 1 Per Amundsen
/gopts
378 1 Per Amundsen
/gplay
379 1 Per Amundsen
/gpoint
380 1 Per Amundsen
/gqreq
381 1 Per Amundsen
/gshow
382 1 Per Amundsen
/gsize
383 1 Per Amundsen
/gstop
384 1 Per Amundsen
/gtalk
385 119 Per Amundsen
/gunload
386 1 Per Amundsen
/ial
387 1 Per Amundsen
/ialclear
388 178 Per Amundsen
/ialfill
389 30 Per Amundsen
/links
390 1 Per Amundsen
/localinfo
391 1 Per Amundsen
/pdcc
392 1 Per Amundsen
/playctrl
393 1 Per Amundsen
/pop
394 1 Per Amundsen
/protect
395 1 Per Amundsen
/pvoice
396 1 Per Amundsen
/qme
397 1 Per Amundsen
/qmsg
398 1 Per Amundsen
/save
399 1 Per Amundsen
/sound
400 1 Per Amundsen
/speak
401 1 Per Amundsen
/sreq
402 1 Per Amundsen
/strip
403 1 Per Amundsen
/tnick
404 1 Per Amundsen
/tray
405 1 Per Amundsen
/vcadd
406 1 Per Amundsen
/vcmd
407 1 Per Amundsen
/vcrem
408 1 Per Amundsen
/winhelp
409 1 Per Amundsen
410 150 Per Amundsen
h2. Command prefixes
411 150 Per Amundsen
412 150 Per Amundsen
/! prefix will execute the internal command, even if there is a alias with the same name.
413 150 Per Amundsen
414 150 Per Amundsen
Example:
415 150 Per Amundsen
416 150 Per Amundsen
<pre>
417 150 Per Amundsen
; Override the /me command,
418 150 Per Amundsen
alias me {
419 150 Per Amundsen
  ; use the /! prefix to call the internal command.
420 150 Per Amundsen
  /!me $1-
421 150 Per Amundsen
}
422 150 Per Amundsen
</pre>
423 150 Per Amundsen
424 150 Per Amundsen
/. prefix can be used to silence the output from many command.
425 150 Per Amundsen
426 150 Per Amundsen
Example:
427 150 Per Amundsen
428 150 Per Amundsen
<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 150 Per Amundsen
432 150 Per Amundsen
Both prefix's can be used at the same time.
433 150 Per Amundsen
434 150 Per Amundsen
Example:
435 150 Per Amundsen
436 150 Per Amundsen
<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 150 Per Amundsen
440 150 Per Amundsen
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 105 Per Amundsen
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 107 Per Amundsen
*Example*
454 107 Per Amundsen
455 107 Per Amundsen
<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 108 Per Amundsen
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 108 Per Amundsen
*Example*
463 108 Per Amundsen
464 108 Per Amundsen
<pre>
465 108 Per Amundsen
; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
466 108 Per Amundsen
; Same as previous example.
467 108 Per Amundsen
alias p /part $chan
468 108 Per Amundsen
</pre>
469 108 Per Amundsen
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 108 Per Amundsen
*Example*
473 108 Per Amundsen
<pre>
474 108 Per Amundsen
; Edit Aliases
475 109 Per Amundsen
/p {
476 108 Per Amundsen
  /echo -ag I am parting $chan
477 108 Per Amundsen
  /part $chan
478 108 Per Amundsen
}
479 108 Per Amundsen
480 108 Per Amundsen
; Script editor
481 108 Per Amundsen
alias p {
482 108 Per Amundsen
  /echo -ag I am parting $chan
483 108 Per Amundsen
  /part $chan
484 108 Per Amundsen
}
485 108 Per Amundsen
</pre>
486 108 Per Amundsen
487 108 Per Amundsen
Almost all built-in commands can be overridden to execute your own script.
488 108 Per Amundsen
489 108 Per Amundsen
*Example*
490 108 Per Amundsen
491 108 Per Amundsen
<pre>
492 108 Per Amundsen
; Create your own /part command
493 108 Per Amundsen
alias part {
494 108 Per Amundsen
  /echo -ag I am parting $chan
495 108 Per Amundsen
  raw PART $chan
496 108 Per Amundsen
}
497 108 Per Amundsen
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 108 Per Amundsen
  /echo -ag I am parting $chan
501 108 Per Amundsen
502 108 Per Amundsen
  ; Execute the built-in part command
503 108 Per Amundsen
  !part $chan
504 108 Per Amundsen
}
505 107 Per Amundsen
</pre>
506 113 Per Amundsen
507 113 Per Amundsen
A command can also be called as a $identifier.
508 113 Per Amundsen
509 113 Per Amundsen
*Example*
510 113 Per Amundsen
511 113 Per Amundsen
<pre>
512 113 Per Amundsen
; Create a command.
513 113 Per Amundsen
alias mycommand {
514 115 Per Amundsen
  echo -ag I was called as a $iif($isid,identifier,command)
515 113 Per Amundsen
}
516 113 Per Amundsen
517 113 Per Amundsen
; Call the command as identifier.
518 113 Per Amundsen
//noop $mycommand
519 113 Per Amundsen
520 116 Per Amundsen
; Call the command as a command.
521 113 Per Amundsen
/mycommand
522 113 Per Amundsen
</pre>