Configuration file syntax

UnrealIRCd configuration files use a block-based format. Each entry or block has a specific format. The format works like:

  {  ; };

 is the type of block, such as me for the Me block, or admin for the Admin block.

 may not always be present, but if it is then it may have two meanings: 1) sometimes it specifies a value, such as bobsmith in oper bobsmith {, 2) other times it defines a sub-type, like with deny dcc {.

 is an individual variable specific to the block.  is the associated value (if any). If  contains spaces or characters that represents a comment it must be contained in double quotes like somevar "some value with spaces in it";. (By the way, if you want to use a quote character inside a quoted string then use \" and it will be understood as a quote character).

Finally, a  may also have directives in it, and so on and so on.

Note: the configuration file is currently case sensitive so BLOCK-NAME is not the same as block-name.

It is very important to terminate each line with a ; and terminate each block with a };. Only the start of the block (eg: me {) has no terminating ; character. If you forget a } or ; somewhere then UnrealIRCd will fail to read your configuration file correctly and will print out a warning or error.

Examples: me { name "irc.something.net"; sid 001; info "Some nice server"; };

log ircd.log { flags { errors; }; };

set { maxchannelsperuser 10;

options { hide-ulines; };       hosts { admin "admin.mynet.org"; netadmin "netadmin.mynet.org"; }; };

Important : there is a special notation used to talk about entries in the config file and we use it throughout the UnrealIRCd documentation. Take the first example from above (the me block), the name is set to irc.something.net, we call this variable set::name. Similarly, in the last example we would refer to the netadmin directive as set::hosts::netadmin, and we call that block the set::hosts block.

You can also put comments in the configuration file. Comments are text that isn't interpreted by UnrealIRCd and it's entirely up to you if you use it and what you write. UnrealIRCd supports 3 types of comments: // This is also a single line comment (type 2) /* This is a  multi line comment */
 * 1) This is a single line comment (type 1)

Now that you know how the configuration file works in principe, copy doc/example.conf to your UnrealIRCd directory (eg: /home/user/Unreal3.2 or C:\Program Files (x86)\Unreal3.4) and rename it to unrealircd.conf and walk through it block per block, line by line. If you want to know more about a specific section then read on below or see the top of the Configuration article for all the available blocks and directives.