]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/xline.cpp
Only show UHNAMES and NAMESX in 005 if the cap module is loaded.
[user/henk/code/inspircd.git] / src / xline.cpp
index f9d94e447b06d7aa24e2618c61e84ae5f3a02ee3..accffb8d0ebaf7ba0181f69b506ed3f2c2f59b86 100644 (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;
                        }
                }
        }