
The # sign refers to the channel you are currently on. To make mIRC combine parameters you can use the $+ identifier. Parameters are normally separated by a space. So if in the above example we type /laugh goat the final command would be /me laughs at goat's joke. You can also specify $2-5 which means use only parameters 2 to 5.Īnything appended to a $ parameter is appended to the final parameter. if you type /slap sheepy a large trout the final line will be /me slaps sheepy around with a large trout. The $2- indicates that everything following and including parameter 2 should be appended to the command line.

In the first case the parameter is necessary for the command to be executed, in the second case it is not. If parameter one does notexist, ask for it. You can also do $$?1 or $?1 which means try to fill this value with parameter one if it exists. If you specify only one parameter in the above command it will not be executed. The double $$ means that this command will only be executed if a parameter is specified. This saves you having to type the same message twice. This refers to the text you just typed into the parameter box. This is similar to the line above except for the addition of the $! parameter. aw /away $?="Enter away message:" | /say $! This does the same thing but now the dialog will have the "Enter channel to join:" line displayed inside it. The # sign indicates that the parameter you specify should be prefixed with a hash indicating that it is a channel. If you enter #gb then the final command will be /join #gb. So if you type /jj a dialog will pop up asking you for the channel you want to join. The parameter you supply will be inserted in the line at that point. The question mark indicates that you should be asked to fill in this parameter. If you now type /yell There! Hello the action command will be /me Hello There! The number after $ specifies the number of the parameter in the string that you entered. The $1 refers to the first parameter in the line that you supply. If we type /j #gb this is the same as typing /join #gb. If you now type /gb this is the same as typing /join #gb.

The following examples show you how to create aliases that perform simple functions. An alias cannot call itself recursively mainly because this seems to cause more problems for users than it solves. To create aliases you must know some Basic IRC commands.Īliases can be called from the command line, from other aliases, and from popup and remote scripts. MIRC allows you to create aliases and scripts to speed up your IRC session or to perform repetitive functions more easily.
