diff options
| author | 2024-05-01 13:27:31 +0100 | |
|---|---|---|
| committer | 2024-05-01 13:44:14 +0100 | |
| commit | e5764984085fd20bc06818e8312c068e6633d63d (patch) | |
| tree | e1774b3d38ef9ed78917bbe9288f49683a99fc0a /src/inspircd.cpp | |
| parent | Fix some messages that contain potentially remapped modes. (diff) | |
Add --protocoldebug, make --debug default to DEBUG not RAWIO.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index c3e5e6e42..681a63c38 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -284,6 +284,7 @@ namespace bool do_nofork = false; bool do_nolog = false; bool do_nopid = false; + bool do_protocoldebug = false; bool do_runasroot = false; bool do_version = false; @@ -303,6 +304,9 @@ namespace | lyra::opt(do_nolog) ["-L"]["--nolog"] ("Disable writing logs to disk.") + | lyra::opt(do_protocoldebug) + ["-p"]["--protocoldebug"] + ("Start in protocol debug mode.") | lyra::opt(do_nopid) ["-P"]["--nopid"] ("Disable writing the pid file.") @@ -335,7 +339,8 @@ namespace // Store the relevant parsed arguments if (!config.empty()) ServerInstance->ConfigFileName = ExpandPath(config.c_str()); - ServerInstance->Config->CommandLine.forcedebug = do_debug; + ServerInstance->Config->CommandLine.forcedebug = do_debug || do_protocoldebug; + ServerInstance->Config->CommandLine.forceprotodebug = do_protocoldebug; ServerInstance->Config->CommandLine.nofork = do_nofork; ServerInstance->Config->CommandLine.runasroot = do_runasroot; ServerInstance->Config->CommandLine.writelog = !do_nolog; |
