git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8409
e03df62e-2008-0410-955e-
edbf42e46eb7
*/
virtual bool Matches(User *u) = 0;
+ virtual bool Matches(const std::string &str);
+
/** The time the line was added.
*/
time_t set_time;
virtual bool Matches(User *u);
+ virtual bool Matches(const std::string &str);
+
/** IP mask
*/
char* ipaddr;
}
virtual bool Matches(User *u);
+ virtual bool Matches(const std::string &str);
+
/** Nickname mask
*/
char* nick;
{
}
-
+virtual bool Matches(const std::string &str)
+{
+ return false;
+}
bool KLine::Matches(User *u)
{
return false;
}
+
+bool ZLine::Matches(const std::string &str)
+{
+ if (match(str.c_str(), this->ipaddr, true))
+ return true;
+ else
+ return false;
+}
+
+bool QLine::Matches(const std::string &str)
+{
+ if (match(str.c_str(), this->nick))
+ return true;
+
+ return false;
+}
+