]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
If we have a bitmask of 0 in apply_lines, dont even bother to run the function!
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 10 Jan 2007 17:54:43 +0000 (17:54 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 10 Jan 2007 17:54:43 +0000 (17:54 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6291 e03df62e-2008-0410-955e-edbf42e46eb7

src/xline.cpp

index 768208e3aec1e423f078bffea0e494cc2a5b8877..b0064e1cf5a51ec00987c8cb90a8df7c4abed5d8 100644 (file)
@@ -665,6 +665,9 @@ void XLineManager::expire_lines()
 
 void XLineManager::apply_lines(const int What)
 {
+       if (!What)
+               return;
+
        if (What & APPLY_PERM_ONLY)
        {
                char reason[MAXBUF];