diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-27 18:25:50 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-27 18:25:50 +0000 |
commit | 82eefb5091f8d2315bbe8179233279e87b03a04d (patch) | |
tree | 972bbb78bcdeffa487d929e38352e4346a4ce8fc | |
parent | efc1cc39a3555ad0c6fb9cff2859e1f6b09052f1 (diff) |
More OnCleanup goodness
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2944 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_kicknorejoin.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp index bd8597a0f..05beaaa5b 100644 --- a/src/modules/m_kicknorejoin.cpp +++ b/src/modules/m_kicknorejoin.cpp @@ -129,10 +129,16 @@ public: chan->Shrink("norejoinusers"); } } + + virtual void OnCleanup(int target_type, void* item) + { + if(target_type == TYPE_CHANNEL) + OnChannelDelete((chanrec*)item); + } virtual void Implements(char* List) { - List[I_On005Numeric] = List[I_OnExtendedMode] = List[I_OnChannelDelete] = List[I_OnUserPreJoin] = List[I_OnUserKick] = 1; + List[I_OnCleanup] = List[I_On005Numeric] = List[I_OnExtendedMode] = List[I_OnChannelDelete] = List[I_OnUserPreJoin] = List[I_OnUserKick] = 1; } virtual void On005Numeric(std::string &output) |