diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-10 17:54:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-10 17:54:43 +0000 |
commit | 048943811113612fdb94bdcb81d111bd4b13d1d9 (patch) | |
tree | 961057c4a1b2a33c2bfd2ec9f7601fbfc65fae01 | |
parent | 2ba3cb83d6964649c2d6be4f3203db03f02b94ff (diff) |
If we have a bitmask of 0 in apply_lines, dont even bother to run the function!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6291 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/xline.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 768208e3a..b0064e1cf 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -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]; |