From 7317c9184ca0d0aa6d34c7812f637b44ddfd6a74 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 7 Apr 2008 22:17:30 +0000 Subject: Use SHUN, not S, try match on std::string for removal git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9408 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_shun.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index e09c068ca..f580c5646 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -15,7 +15,7 @@ class Shun : public XLine public: std::string matchtext; - Shun(InspIRCd* Instance, time_t s_time, long d, const char* src, const char* re, const char *shunmask) : XLine(Instance, s_time, d, src, re, "S") + Shun(InspIRCd* Instance, time_t s_time, long d, const char* src, const char* re, const char *shunmask) : XLine(Instance, s_time, d, src, re, "SHUN") { this->matchtext = shunmask; } @@ -32,9 +32,10 @@ public: return false; } - // XXX unused, why do we *have* to implement this bool Matches(const std::string &s) { + if (matchtext == s) + return true; return false; } -- cgit v1.2.3