files { } block

These are old archives. They are kept for historic purposes only.
Post Reply
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

files { } block

Post by katsklaw »

I'd like to see the config files moved from config.h to the files block.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: files { } block

Post by Jobe »

katsklaw wrote:I'd like to see the config files moved from config.h to the files block.
Seconded, although it would require making this block compulsory.
Your IP: Image
Your Country: Image
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: files { } block

Post by katsklaw »

Obviously we can't specify the name of unrealircd.conf in the config file as we have to know that info first ;P Additionally, these would likely need to be placed so they are parsed first or at least early. I don't really think they need to be compulsory. It can be made so that if the file isn't specified in the config file then it defaults to something sane. That makes the new feature backwards compatible and only those that want to change the name of the file(s) can. Although users can already edit config.h without voiding their support, many just don't need to be or don't feel comfortable doing so.

Code: Select all

#define MPATH           "ircd.motd"     /* server MOTD file */
#define SMPATH          "ircd.smotd"    /* short MOTD file */
#define RPATH           "ircd.rules"    /* server rules file */
#define OPATH           "oper.motd"     /* Operators MOTD file */
#define LPATH           "debug.log"     /* Where the debug file lives, if DEBUGMODE */
#define PPATH           "ircd.pid"      /* file for server pid */
#define VPATH           "ircd.svsmotd"  /* Services MOTD append. */
#define BPATH           "bot.motd"      /* Bot MOTD */
#define IRCDTUNE        "ircd.tune"     /* tuning .. */
Also I've requested this feature already for those that wish to follow it. http://bugs.unrealircd.org/view.php?id=4027&nbn=1
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: files { } block

Post by Stealth »

Hint: someone needs to start making patches and attach them to the bug report requesting this.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: files { } block

Post by katsklaw »

Stealth wrote:Hint: someone needs to start making patches and attach them to the bug report requesting this.
My CodeFu is not that strong, Master GrassHopper! :) I can likely make them ./Config options easily enough ... just not config file values.
Post Reply