summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-05 11:55:20 +0000
committerSadie Powell <sadie@witchery.services>2024-01-05 12:00:28 +0000
commit4573e1925dc62415306a29e7fbbec6727649aef9 (patch)
tree4ff4ae30a3408cf6507d7b7d1271b54836cf40f6 /src/main.cpp
parenta40f8e0b9d397f2e15d141c5bec823c633a6f90a (diff)
Use normal exit codes when exiting the process.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5543ceebe..f2228eead 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -137,12 +137,13 @@ int main(int ac, char **av, char **envp)
try
{
/* General initialization first */
- Anope::Init(ac, av);
+ if (!Anope::Init(ac, av))
+ return Anope::ReturnValue;
}
catch (const CoreException &ex)
{
Log() << ex.GetReason();
- return -1;
+ return EXIT_FAILURE;
}
try