diff options
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 309bb3117..8e79bd5bb 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -427,7 +427,7 @@ bool Anope::Init(int ac, char **av) /* Chdir to Anope data directory. */ Log() << "Moving to " << Anope::ServicesDir; - if (chdir(Anope::ServicesDir.c_str()) < 0) + if (chdir(Anope::ServicesDir.c_str()) != 0) { throw CoreException("Unable to chdir to " + Anope::ServicesDir + ": " + Anope::LastError()); } |