summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.inspircd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.inspircd.inc b/.inspircd.inc
index 791017caf..9a0f655ce 100644
--- a/.inspircd.inc
+++ b/.inspircd.inc
@@ -248,7 +248,7 @@ sub cmd_stop()
kill TERM => $pid or die "Cannot terminate IRCd: $!\n";
for (1..$maxwait) {
sleep 1;
- if (getstatus() == 1) {
+ if (getstatus() == 0) {
print "InspIRCd Stopped.\n";
return;
}