summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-28 18:16:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-28 18:16:58 +0000
commit974bc2356a808849d535d9cae0be62981c911b22 (patch)
tree18e2c070796c8b313ef9372bc1e1d3093aba8547 /src/modules
parentdcafa1a379bab45d623d365706491ccf59cd61e6 (diff)
Fixed to take away +q and +a when the user parts the channel (double DOH)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@931 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-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 c762fb6a4..698e2fbc1 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -68,6 +68,13 @@ class ModuleChanProtect : public Module
output = temp2.substr(0,temp2.length()-1);
}
+ virtual void OnUserPart(userrec* user, chanrec* channel)
+ {
+ // FIX: when someone parts a channel we must remove their Extensibles!
+ user->Shrink("cm_founder_"+std::string(channel->name));
+ user->Shrink("cm_protect_"+std::string(channel->name));
+ }
+
virtual void OnRehash()
{
// on a rehash we delete our classes for good measure and create them again.