config syntax

These are old archives. They are kept for historic purposes only.
Post Reply
Oyarsa
Posts: 54
Joined: Wed Feb 14, 2007 12:35 pm
Location: irc.otherworlders.org
Contact:

config syntax

Post by Oyarsa »

Just a quick question on the config syntax.

Throughout the docs there is this notation: (as an example)

Code: Select all

oper::class
Can the blocks be entered as one line or do they have to be entered in the block format in the config file?
SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post 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...
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
Post Reply