31 Commits

Author SHA1 Message Date
InspIRCd Robot
ae3e2db109 Update copyright headers. 2024-06-07 10:37:56 +01:00
Sadie Powell
386f0dafd5 Replace FileReader with something more sensible. 2023-07-03 18:43:58 +01:00
Sadie Powell
1b2916c845 Avoid copying shared_ptr<ConfigTag> when not necessary. 2023-01-10 21:27:18 +00:00
Sadie Powell
9203f40f41 Fix some warnings noticed by the readability-* clang-tidy checkers. 2022-09-03 23:17:05 +01:00
Sadie Powell
26394c46f1 Replace FileWrapper with std::unique_ptr. 2022-01-18 16:29:47 +00:00
Sadie Powell
421e8c8c79 Add the final keyword to all remaining classes that can have it. 2021-12-20 20:19:40 +00:00
Sadie Powell
6b99684a09 Merge branch 'insp3' into master. 2021-09-30 20:12:36 +01:00
Sadie Powell
1befd6ea00 Move the ParseStack constructor out of the header. 2021-09-30 19:15:18 +01:00
Sadie Powell
b2fde769b6 Merge branch 'insp3' into master. 2021-06-18 15:02:34 +01:00
Sadie Powell
8f2595e807 Add predefined config variables for the build time directories. 2021-06-13 21:05:16 +01:00
Sadie Powell
60a66c8749 Add an initializer_list constructor to the flat types. 2021-04-14 23:35:51 +01:00
Sadie Powell
c22c7e5a99 Merge branch 'insp3' into master. 2021-02-28 19:16:40 +00:00
InspIRCd Robot
1bf7ca3894 Update copyright headers. 2021-02-26 06:58:13 +00:00
Sadie Powell
4f68d162cc Merge branch 'insp3' into master. 2021-01-07 13:13:58 +00:00
Sadie Powell
8d6b550e0b Implement support for more XML and IRC colour code escapes. 2021-01-07 11:53:58 +00:00
Sadie Powell
3075cc7bd0 Move config typedefs to ServerConfig and use auto in more places. 2020-11-03 22:30:58 +00:00
Sadie Powell
1b181b42b8 Convert ConfigTag from reference<> to std::shared_ptr<>. 2020-10-31 23:21:15 +00:00
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Peter Powell
cb7e83aa4e Move some config parser-internal types out of the public header. 2018-12-09 16:13:27 +00:00
Peter Powell
4b37c61225 Make the config system case insensitive. 2017-02-04 18:23:22 +00:00
Attila Molnar
7010a92426 Change type of some associative containers to their flat versions, including Extensible storage 2014-12-15 17:48:52 +01:00
Attila Molnar
f3c6c6123d Deduplicate ParseStack::ParseFile() and ParseExec() 2014-06-09 17:10:17 +02:00
Peter Powell
11cafc12d5 Tidy up source files:
- Use #pragma once instead of include guards.
- Move header files in src/modules to include/modules.
- Fixed various spacing issues.
2013-04-12 17:03:05 +01:00
Peter Powell
2ae42bbb1f Default to the XML config format. 2013-04-06 11:47:56 +01:00
attilamolnar
fd6a8e9392 Add support for mandatory tags in included config files
If the mandatory tag is not found in the included config, the rehash is aborted. This is especially useful for remote includes, as it allows users to have a dummy tag at the end of the included config to indicate that the config has been wholly read.
This method does not depend on exit codes so even situations where wget returns an empty or a wrong page that we would otherwise accept can be detected and an error can be generated before we assume that the contents have disappeared (and unload all modules, if the included file is supposed to contain module tags, for example).

Usage: <include ... mandatorytag="namehere"> - if the included config doesn't contain a <namehere> tag then the rehash is aborted

Fixes #30 reported by @Justasic
2013-03-20 21:43:46 +01:00
ChrisTX
5b9682275e Windows: In-depth cleanup (see details)
-Fix x64 builds for Windows. Now all configurations compile.
-Remove the non-working rebase stuff.
-Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now.
-Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2
-Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need.
-Enable optimizations for release builds.
-De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure
-Add the VC++ specific bad files in .gitignore
-Disable PID writing on Windows. This is only making sense for *nix builds.
-Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working)
-Removed certain unused functions and variables
-Remove stdint defines from the windows wrapper
-Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds.
-Re-evaluated the warnings list, commented it.
-Moved inspircd_config/_version to include/ to match *nix
-Removed the creation of inspircd_se_config, as it isn't used at all.
-Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out)
-Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly.
-Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down)
-Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded.
-Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways)
-Removed the unused ClearConsole()
-Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate.
-Made inet_aton an inline function for increased performance
-C4800, performance warning about bool forcing, resolved at all occurrences.
-C4701, uninitialized variable 'cached', resolved at all occurrences.
-dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance.
-Removed the wrong CRT debug flags. This drains a lot of performance.
-Removed the clock_gettime/gettimeofday wrappers
-Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function.
-Added a block of C4355 for < VS2012
-Update project files for c870714
2012-10-12 22:31:38 +02:00
attilamolnar
074a96c9ff Close files opened with popen() with pclose() instead of fclose() 2012-07-11 16:34:50 +02:00
Robby-
46a3904619 Replace copyright headers with headers granting specific authors copyright 2012-04-19 20:58:29 +02:00
danieldg
f2256deeef Executable include for MOTD and more
This introduces an <execfiles> tag that reads files from the output of
a command, in the same way as executable includes. The files specified
here can also be used anywhere a file is used (opermotd, randquote, etc)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12354 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-02 16:47:25 +00:00
danieldg
5d73e89288 Add <config:format> to avoid breaking existing configuration files with XML entity changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11974 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-25 00:02:28 +00:00
danieldg
b332dda6a3 Split up configreader.cpp, it's a bit large
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11954 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-22 21:49:50 +00:00