summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
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);