summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-06 00:07:31 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-06 00:07:31 +0000
commit06432980d90b4bdfb6af08c7fb69327023f64ea8 (patch)
treed7432c683b70211238557c167b6236c9fd7cd78a /src
parentacf783b83cf474d0ebe6f1aed8083e93033f2150 (diff)
Fix shun not applying if you add an IP mask for a user that has a host which resolves. Spotted by Ankit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11289 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_shun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index ab7e30c58..6fc65cb19 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -32,7 +32,7 @@ public:
bool Matches(User *u)
{
- if (InspIRCd::Match(u->GetFullHost(), matchtext) || InspIRCd::Match(u->GetFullRealHost(), matchtext))
+ if (InspIRCd::Match(u->GetFullHost(), matchtext) || InspIRCd::Match(u->GetFullRealHost(), matchtext) || InspIRCd::Match(u->nick+"!"+u->ident+"@"+u->GetIPString(), matchtext))
return true;
return false;