From 01fac25f1654299c53d721adc3481d4a5601eacf Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 27 Mar 2009 14:14:47 +0000 Subject: Don't use metadata in m_shun, this fixes problems with expiry reported by Taros in bug #772. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11266 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_shun.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 05f4bfe3c..91be7c10f 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -47,8 +47,6 @@ public: void Apply(User *u) { - if (!u->GetExt("shunned")) - u->Extend("shunned"); } @@ -245,13 +243,12 @@ class ModuleShun : public Module virtual int OnPreCommand(std::string &command, std::vector& parameters, User* user, bool validated, const std::string &original_line) { - if (validated || !user->GetExt("shunned")) + if (validated) return 0; if (!ServerInstance->XLines->MatchesLine("SHUN", user)) { - /* The shun previously set on this user has expired or been removed */ - user->Shrink("shunned"); + /* Not shunned, don't touch. */ return 0; } -- cgit v1.2.3