1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 13:26:38 +02:00

Fix an inverted condition.

This commit is contained in:
Sadie Powell
2024-11-13 12:10:38 +00:00
parent 309c342b86
commit 8408bf95c7
+1 -1
View File
@@ -217,7 +217,7 @@ int main(int ac, char **av, char **envp)
if (Anope::Restarting)
{
if (chdir(BinaryDir.c_str()) != 0)
if (chdir(BinaryDir.c_str()) == 0)
{
Anope::string sbin = "./" + Anope::ServicesBin;
av[0] = const_cast<char *>(sbin.c_str());