View Issue Details

IDProjectCategoryView StatusLast Update
0003519unrealircdpublic2007-08-27 12:16
ReporterstskeepsAssigned ToDan  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionopen 
PlatformAllOSAllOS VersionAll
Product Version4.0-devel 
Summary0003519: Implement @merge config directive
DescriptionWhen the config transformations meet a @merge config directive on form:

@merge block-name;

it will merge all blocks with this block-name into one.

for instance:

features/default.conf:

@merge set;
 
set { // some defaults; };

unrealircd.conf:

include "features/default.conf";

set { // override some of the defaults };

to the IRCd the set {} block will look as if it is one tag.

Conflict resolution in the case of two matching key's (key "value"; ) in block, is the the latest setting is the one that wins.
 
TagsNo tags attached.
3rd party modules

Relationships

child of 0003417 closed TODO list for Unreal4.0 

Activities

Dan

2007-08-21 03:07

reporter   ~0014732

I'm not sure how useful this feature would be. There's already default values defined in ServerConfig::Read (configreader.cpp, line 629) which are overridden in blocks actually defined in the config file.

The way I see it, the defaults.conf purpose is to let the user define values which differ from the hard-coded default values. But if they want to do that, wouldn't they just add it into unrealircd.conf?

Issue History

Date Modified Username Field Change
2007-08-20 05:05 stskeeps New Issue
2007-08-20 05:05 stskeeps QA => Not touched yet by developer
2007-08-20 05:05 stskeeps U4: Need for upstream patch => No need for upstream InspIRCd patch
2007-08-20 05:05 stskeeps U4: Upstream notification of bug => Not decided
2007-08-20 05:05 stskeeps U4: Contributor working on this => None
2007-08-20 05:09 stskeeps Status new => confirmed
2007-08-20 05:10 stskeeps Relationship added child of 0003417
2007-08-21 03:07 Dan Note Added: 0014732
2007-08-27 12:02 Dan Status confirmed => assigned
2007-08-27 12:02 Dan Assigned To => Dan
2007-08-27 12:16 Dan QA Not touched yet by developer => Fixed by developer, needs QA testing
2007-08-27 12:16 Dan Status assigned => resolved