summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xline.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 072320555..329b0e6e8 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -323,6 +323,9 @@ void ELine::Unset()
QLine* XLineManager::matches_qline(const char* nick)
{
+ if (lookup_lines.find('Q') == lookup_lines.end())
+ return NULL;
+
if (lookup_lines.find('Q') != lookup_lines.end() && lookup_lines['Q'].empty())
return NULL;
@@ -336,6 +339,9 @@ QLine* XLineManager::matches_qline(const char* nick)
GLine* XLineManager::matches_gline(User* user)
{
+ if (lookup_lines.find('G') == lookup_lines.end())
+ return NULL;
+
if (lookup_lines.find('G') != lookup_lines.end() && lookup_lines['G'].empty())
return NULL;
@@ -348,6 +354,9 @@ GLine* XLineManager::matches_gline(User* user)
ELine* XLineManager::matches_exception(User* user)
{
+ if (lookup_lines.find('E') == lookup_lines.end())
+ return NULL;
+
if (lookup_lines.find('E') != lookup_lines.end() && lookup_lines['E'].empty())
return NULL;
@@ -424,6 +433,9 @@ void XLineManager::zline_set_creation_time(const char* ip, time_t create_time)
ZLine* XLineManager::matches_zline(User *u)
{
+ if (lookup_lines.find('Z') == lookup_lines.end())
+ return NULL;
+
if (lookup_lines.find('Z') != lookup_lines.end() && lookup_lines['Z'].empty())
return NULL;
@@ -437,6 +449,9 @@ ZLine* XLineManager::matches_zline(User *u)
KLine* XLineManager::matches_kline(User* user)
{
+ if (lookup_lines.find('K') == lookup_lines.end())
+ return NULL;
+
if (lookup_lines.find('K') != lookup_lines.end() && lookup_lines['K'].empty())
return NULL;