Only skip applying more X-lines to a user if they have been killed.

This fixes an issue with the previous commit where if a user had a
non-killing X-line applied to them (e.g. Q-line) they would not
have any further X-lines applied to them.

Thanks to @linuxdaemon for pointing this out.
This commit is contained in:
Peter Powell 2019-05-17 09:23:46 +01:00
parent 0ab7720ea4
commit f9a258fa76

View File

@ -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;
}
}
}