Page 1 of 1
config syntax
Posted: Fri Jun 15, 2007 2:32 pm
by Oyarsa
Just a quick question on the config syntax.
Throughout the docs there is this notation: (as an example)
Can the blocks be entered as one line or do they have to be entered in the block format in the config file?
Posted: Fri Jun 15, 2007 3:05 pm
by SpaceDoG
as long as it follows the same syntax it can be on 1 line... IE
Code: Select all
oper <name> {
from {
userhost <hostmask>;
userhost <hostmask>;
};
password <password> { <auth-type>; };
class <class-name>;
flags <flags>;
flags {
<flag>;
<flag>;
...
};
swhois <whois info>;
snomask <snomask>;
modes <modes>;
maxlogins <num>;
};
=
Code: Select all
oper <name> { from {userhost <hostmask>; userhost <hostmask>; }; password <password> { <auth-type>; }; class <class-name>; flags <flags>; flags { <flag>; <flag>; ... }; swhois <whois info>; snomask <snomask>; modes <modes>; maxlogins <num>; };
If I'm not mistaken...
Posted: Fri Jun 15, 2007 4:20 pm
by Jobe
SpaceDoG is correct, I commonly use one line blocks instead of spreading them out to save space.
As long as you close ALL "'s and {}'s properly and put the ;'s in the right places it should work.
Posted: Fri Jun 15, 2007 5:05 pm
by Stealth
The original posted asked if he could use the syntax as it appears in the documentation of "oper::class", which cannot be done. In the doc section called "Configuration file explained", it explains that this format is used for notation only, and cannot be used in the conf.