diff options
-rw-r--r-- | src/modules/m_rline.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_shun.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index 3895705e0..2394efaa3 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -57,6 +57,9 @@ class RLine : public XLine bool Matches(User *u) { + if (u->exempt) + return false; + std::string compare = u->nick + "!" + u->ident + "@" + u->host + " " + u->fullname; return regex->Matches(compare); } diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index f65b89ccf..56c57aee0 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -32,6 +32,10 @@ public: bool Matches(User *u) { + // E: overrides shun + if (u->exempt) + return false; + if (InspIRCd::Match(u->GetFullHost(), matchtext) || InspIRCd::Match(u->GetFullRealHost(), matchtext) || InspIRCd::Match(u->nick+"!"+u->ident+"@"+u->GetIPString(), matchtext)) return true; |