files { } block
files { } block
I'd like to see the config files moved from config.h to the files block.
Configuration - https://www.unrealircd.org/docs/Configuration
FAQ - https://www.unrealircd.org/docs/FAQ
FAQ - https://www.unrealircd.org/docs/FAQ
Re: files { } block
Seconded, although it would require making this block compulsory.katsklaw wrote:I'd like to see the config files moved from config.h to the files block.
Your IP:
Your Country:
Your Country:
Re: files { } block
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.
Also I've requested this feature already for those that wish to follow it. http://bugs.unrealircd.org/view.php?id=4027&nbn=1
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 .. */
Configuration - https://www.unrealircd.org/docs/Configuration
FAQ - https://www.unrealircd.org/docs/FAQ
FAQ - https://www.unrealircd.org/docs/FAQ
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Re: files { } block
Hint: someone needs to start making patches and attach them to the bug report requesting this.
Re: files { } block
My CodeFu is not that strong, Master GrassHopper! I can likely make them ./Config options easily enough ... just not config file values.Stealth wrote:Hint: someone needs to start making patches and attach them to the bug report requesting this.
Configuration - https://www.unrealircd.org/docs/Configuration
FAQ - https://www.unrealircd.org/docs/FAQ
FAQ - https://www.unrealircd.org/docs/FAQ