From WikiChip
Difference between revisions of "mirc/commands/alias"
< mirc‎ | commands

m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +))
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{mirc title|/alias Command}}
 
The '''/alias command''' can be used to add, replace and remove aliases. This command ONLY works for single line aliases. By default mIRC will add the alias to the first aliases script file.
 
The '''/alias command''' can be used to add, replace and remove aliases. This command ONLY works for single line aliases. By default mIRC will add the alias to the first aliases script file.
  
Line 4: Line 5:
  
 
== Synopsis ==
 
== Synopsis ==
  /alias [filename] <aliasname> [command]
+
  /alias -s [filename] <aliasname> [command]
  
 
== Switches ==
 
== Switches ==
None
+
* '''-s''' - deletes the alias, same as giving no [command]
  
 
== Parameters ==
 
== Parameters ==
Line 35: Line 36:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v4.5
+
{{mIRC compatibility|4.5}}
  
  
Line 51: Line 52:
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:MIRC commands]]
+
[[Category:mIRC commands|alias command - mIRC]]

Revision as of 12:57, 20 July 2020

The /alias command can be used to add, replace and remove aliases. This command ONLY works for single line aliases. By default mIRC will add the alias to the first aliases script file.

Note: Trying to remove a multi-line alias will result in a "unable to remove" error message.

Synopsis

/alias -s [filename] <aliasname> [command]

Switches

  • -s - deletes the alias, same as giving no [command]

Parameters

  • [filename] - Optional parameter that can be used to specify which aliases file to use, the file must be already loaded.
  • <aliasname> - The name of the alias to use.
  • [command] - If specified, the commands that are associated with the alias (you can specify multiple commands on one line by seperating them properly with pipes), if not specified the alias is removed.

Example

;Adds a new alias by the name "cookies"
;You can now do /cookies
/Alias /Cookies /me hands out the cookie jar 
 
;We replaced the old cookies alias with this new one
/Alias /Cookies /me Steals someone's cookies!
 
;Remove the alias
/Alias /Cookies

Output:

* Added '/Cookies' alias
* Replaced '/Cookies' alias
* Removed '/Cookies' alias

Compatibility

Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also

v · d · e mIRC commands list

A /abook, /action, /add, /ajinvite, /alias, /aline, /ame, /amsg, /anick, /aop, /auser, /auto, /autojoin, /avoice, /away

B /background, /ban, /bcopy, /beep, /bindip, /bread, /break, /breplace, /bset, /btrunc, /bunset, /bwrite

C /channel, /clear, /clearall, /clearial, /cline, /clipboard, /close, /closechats, /closedccs, /closefserves, /closemsg, /cnick, /color, /colour, /comclose, /comlist, /commands, /comopen, /comreg, /continue, /copy, /creq, /ctcp, /ctcpreply, /ctcps

D /dcc, /dccserver, /dde, /ddeserver, /debug, /dec, /describe, /dialog, /did, /didtok, /disable, /disconnect, /dlevel, /dline, /dll, Template:mIRC/donotdisturb, /dns, /dqwindow, /drawcopy, /drawdot, /drawfill, /drawline, /drawpic, /drawrect, /drawreplace, /drawrot, /drawsave, /drawscroll, /drawsize /drawtext

E /ebeeps, /echo, /editbox, /else, /elseif, /emailaddr, /enable, /events, /exit

F /fclose, /filter, /findtext, /finger, /firewall, /flash, /flist, /flood, /flush, /flushini, /fnord, /font, /fopen, /fseek, /fsend, /fserve, /fullname, /fupdate, /fwrite

G /ghide, /gload, /gmove, /gopts, /goto, /gplay, /gpoint, /gqreq, /groups, /gshow, /gsize, /gstop, /gtalk, /gunload, /guser

H /hadd, /halt, /haltdef, /hdec, /hdel, /help, /hfree, /hinc, /hload, /hmake, /hotlink, /hop, /hsave

I /ial, /ialclear, /ialmark, /identd, /if, /ignore, /iline, /inc, /iuser

J /join

L /leave, /linesep, /links, /list, /load, /loadbuf, /localinfo, /log, /logview

M /maxdepth, /mdi, /me, /menubar, /mkdir, /mnick, /mode, /msg

N /noop, /notice, /notify

O /onotice, /omsg

P /pareline, /part, /partall, /pdcc, /perform, /play, /playctrl, /pop, /protect, /proxy, /pvoice

Q /qme, /qmsg, /query, /queryrn, /quit, /quote

R /raw, /registration, /reload, /remini, /remote, /remove, /rename, /renwin, /reseterror, /resetidle, /return, /returnex, /rlevel, /rline, /rmdir, /run, /ruser

S /save, /savebuf, /saveini, /say, /scid, /scon, /server, /set, /setlayer, /showmirc, /signal, /sline, /sockaccept, /sockclose, /socklist, /socklisten, /sockmark, /sockopen, /sockpause, /sockread, /sockrename, /sockudp, /sockwrite, /sound, /speak, /splay, /sreq, /strip, /switchbar

T /timer, /timestamp, /tip, /tips, /titlebar, /tnick, /tokenize, /toolbar, /topic /tray, /treebar

U /ulist, /unload, /unset, /unsetall, /updatenl, /url, /username, /uwho

V /var, /vcadd, /vcmd, /vcrem, /vol

W

X /xyzzy