summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xline.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index f9d94e447..accffb8d0 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -460,7 +460,11 @@ void XLineManager::ApplyLines()
if (x->Matches(u))
{
x->Apply(u);
- break;
+
+ // If applying the X-line has killed the user then don't
+ // apply any more lines to them.
+ if (u->quitting)
+ break;
}
}
}