mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
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:
parent
0ab7720ea4
commit
f9a258fa76
@ -460,7 +460,11 @@ void XLineManager::ApplyLines()
|
|||||||
if (x->Matches(u))
|
if (x->Matches(u))
|
||||||
{
|
{
|
||||||
x->Apply(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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user