Page 1 of 1

files { } block

Posted: Tue Jul 12, 2011 2:57 pm
by katsklaw
I'd like to see the config files moved from config.h to the files block.

Re: files { } block

Posted: Sat Jul 16, 2011 12:22 pm
by Jobe1986
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.

Re: files { } block

Posted: Sun Jul 17, 2011 1:47 am
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

Re: files { } block

Posted: Sun Jul 17, 2011 3:17 am
by Stealth
Hint: someone needs to start making patches and attach them to the bug report requesting this.

Re: files { } block

Posted: Sun Jul 17, 2011 3:24 am
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.