summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-31 17:22:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-31 17:22:02 +0000
commit4ae08d527280778daf991a38af80956c2b84693b (patch)
tree97e57f8b54f81578f7eb2fe0a6e5c8bd06ca5b14 /src/xline.cpp
parentde17f45ced928d8cc3c7fbbb4882ac6a68ce4171 (diff)
Fixified some more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8428 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 9a56450ff..bc505dcc5 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -428,11 +428,6 @@ XLineManager::XLineManager(InspIRCd* Instance) : ServerInstance(Instance)
{
}
-bool XLine::Matches(const std::string &str)
-{
- return false;
-}
-
void XLine::Apply(User* u)
{
}
@@ -558,6 +553,21 @@ bool QLine::Matches(const std::string &str)
return false;
}
+bool ELine::Matches(const std::string &str)
+{
+ return ((match(str.c_str(), matchtext.c_str(), true)));
+}
+
+bool KLine::Matches(const std::string &str)
+{
+ return ((match(str.c_str(), matchtext.c_str(), true)));
+}
+
+bool GLine::Matches(const std::string &str)
+{
+ return ((match(str.c_str(), matchtext.c_str(), true)));
+}
+
virtual bool ELine::MatchesLiteral(const std::string &str)
{
return (assign(str) == irc::string(this->identmask) + '@' + this->hostmask);