Project

General

Profile

Scripting Commands » History » Version 170

Per Amundsen, 04/01/2018 12:33 AM

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