aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar w00t2007-10-28 19:20:44 +0000
committerGravatar w00t2007-10-28 19:20:44 +0000
commit3f29514c37f8df97091cd3bbe02a6c01f4098e16 (patch)
tree9d2ea53046964fad8f9bf771370f6bdc968e0dfd /include
parentForgot it should return false (diff)
Add a virtual Matches to XLine class, and override it appropriately for all derived classes. Most still need to be converted to use it, however. This will make ApplyLines change much easier than it is currently ..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8403 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/xline.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/xline.h b/include/xline.h
index 794f9b794..d5dd87aa5 100644
--- a/include/xline.h
+++ b/include/xline.h
@@ -59,7 +59,7 @@ class CoreExport XLine : public classbase
/** Returns true whether or not the given user is covered by this line.
*/
- virtual bool Matches(User *u);
+ virtual bool Matches(User *u) = 0;
/** The time the line was added.
*/
@@ -109,6 +109,8 @@ class CoreExport KLine : public XLine
free(hostmask);
}
+ virtual bool Matches(User *u);
+
/** Ident mask
*/
char* identmask;
@@ -144,6 +146,8 @@ class CoreExport GLine : public XLine
free(hostmask);
}
+ virtual bool Matches(User *u);
+
/** Ident mask
*/
char* identmask;
@@ -177,6 +181,8 @@ class CoreExport ELine : public XLine
free(hostmask);
}
+ virtual bool Matches(User *u);
+
/** Ident mask
*/
char* identmask;
@@ -209,6 +215,8 @@ class CoreExport ZLine : public XLine
free(ipaddr);
}
+ virtual bool Matches(User *u);
+
/** IP mask
*/
char* ipaddr;
@@ -236,7 +244,9 @@ class CoreExport QLine : public XLine
~QLine()
{
free(nick);
+
}
+ virtual bool Matches(User *u);
/** Nickname mask
*/