From ed98005ffd341ac265dada2057a8e313265dbb51 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 3 May 2005 21:47:05 +0000 Subject: Fixed to remove privilages upon kick git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1300 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/m_chanprotect.cpp') diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 5a8e40a36..035658f8e 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -69,6 +69,13 @@ class ModuleChanProtect : public Module output = temp2.substr(0,temp2.length()-1); } + virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) + { + // FIX: when someone gets kicked from a channel we must remove their Extensibles! + user->Shrink("cm_founder_"+std::string(chan->name)); + user->Shrink("cm_protect_"+std::string(chan->name)); + } + virtual void OnUserPart(userrec* user, chanrec* channel) { // FIX: when someone parts a channel we must remove their Extensibles! -- cgit v1.2.3