/* NETWORK-SPECIFIC */ /* DO NOT MODIFY */ /* * NEW: alias {} * OLD: N/A * This allows you to set command aliases such as /nickserv, /chanserv etc * FLAGS: services, stats, normal * * Syntax: * alias "name" { * target "points to"; * type aliastype; * }; * */ // This points the command /nickserv to the user NickServ who is connected to the set::services-server server /*alias NickServ { target "NickServ"; type services; };*/ // If you want the command to point to the same nick as the command, you can leave the nick entry out //alias ChanServ { type services; }; // Points the /statserv command to the user StatServ on the set::stats-server server //alias StatServ { type stats; }; // Points the /superbot command to the user SuperBot //alias SuperBot { type normal; }; /* Standard aliases */ alias NickServ { type services; }; alias ChanServ { type services; }; alias OperServ { type services; }; alias HelpServ { type services; }; alias StatServ { type stats; }; /* * NEW: alias {} * OLD: N/A * This allows you to set command aliases such as /identify, /services, etc * * Syntax: * alias "name" { * format "format string" { * target "points to"; * type aliastype; * parameters "parameters to send"; * }; * type command; * }; * * This is shown seperately because even though it has the same name as the previous directive, it is very * different in syntax, although it provides a similar function and relys on the standard aliases to work. */ /* The alias::format directive is a regular expression. The first format matches the /identify command when * the first character is a #. It then passes this along to the chanserv alias with the parameters IDENTIFY * %1-. The second format matches then /identify command when the first character is not a #. It then * passes the command to the nickserv alias with parameters IDENTIFY %1-. * * * The alias::format::parameters is similar to scripting languages. %N (where N is a number) represents a * parameter sent to the command (in this case /identify). If you specify %N- it means all parameters from * N until the last parameter in the string. You may also specify %n which is replaced by * the user's nickname. */ /* More standard aliases */ alias "services" { format "^#" { target "chanserv"; type services; parameters "%1-"; }; format "^[^#]" { target "nickserv"; type services; parameters "%1-"; }; type command; }; alias "identify" { format "^#" { target "chanserv"; type services; parameters "IDENTIFY %1-"; }; format "^[^#]" { target "nickserv"; type services; parameters "IDENTIFY %1-"; }; type command; };