summaryrefslogtreecommitdiff
path: root/src/modules/m_chanprotect.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-03 21:47:05 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-03 21:47:05 +0000
commited98005ffd341ac265dada2057a8e313265dbb51 (patch)
treebd86ca14bdaed49ef865ba7dce4a7a10d42f1867 /src/modules/m_chanprotect.cpp
parent24b84ea9a588c1499b278c7646abdc38b9f964f6 (diff)
Fixed to remove privilages upon kick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1300 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
-rw-r--r--src/modules/m_chanprotect.cpp7
1 files changed, 7 insertions, 0 deletions
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!