From 048943811113612fdb94bdcb81d111bd4b13d1d9 Mon Sep 17 00:00:00 2001
From: brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Date: Wed, 10 Jan 2007 17:54:43 +0000
Subject: 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
---
 src/xline.cpp | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/xline.cpp')

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];
-- 
cgit v1.2.3