From 06432980d90b4bdfb6af08c7fb69327023f64ea8 Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 6 Apr 2009 00:07:31 +0000 Subject: 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 --- src/modules/m_shun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_shun.cpp') 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; -- cgit v1.2.3