summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 22:17:30 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 22:17:30 +0000
commit7317c9184ca0d0aa6d34c7812f637b44ddfd6a74 (patch)
treed8239009294d8f9212a74f8aed69404a10c2e0f5 /src/modules/m_shun.cpp
parentead986d6852a5e8d53fdaf29fdf227f030a28e7d (diff)
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
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp5
1 files 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;
}