alias

# alias Adds a new alias or modifies an existing one
Usage
    alias [-q] (<alias_name>) <implementation>
    alias [-q] (<alias_name>){}
Description
Adds the alias <alias_name> with the specified <implementation> code. The implementation code can be either a single KVS instruction or an instruction block (instruction list enclosed in braces). If the alias was already existing, it is replaced with the new implementation. If the <implementation> is empty (eg. "{}" or just a ";") the alias <alias_name> is removed instead of being added. If the "remove" form is used but the specified <alias_name> is not existing in the alias store then a warning is printed unless the -q (--quiet) switch is used. If <alias_name> contains a "<name>::" prefix, then the alias is created in the namespace specified by <name>. If the namespace is not existing, it is created. Any alias without the "<name>::" prefix is created in the root namespace. Namespaces are useful to avoid collisions in alias names between scripts. Only really common aliases should be created in the root namespace: all your script internal functionality should be hidden in your own namespace.
Switches
-q | --quiet
Causes the command to run quietly
Syntax Specification
    alias [-q] (<alias_name>) <implementation>
    alias [-q] (<alias_name>){}
Examples
        # Add the alias j
        alias(j)
        {
            join $0;
        }
        # Remove the alias j
        alias(j){}
        # Add the alias j in namespace letters[/comments]
        alias(letters::j)
        {
            echo "j"
        }
See also
aliases and functions

Index, Commands

KVIrc 3.4.0 Documentation
Generated by loris at Mon Mar 17 20:35:38 2008