From 82eefb5091f8d2315bbe8179233279e87b03a04d Mon Sep 17 00:00:00 2001 From: om Date: Fri, 27 Jan 2006 18:25:50 +0000 Subject: More OnCleanup goodness git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2944 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_kicknorejoin.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/modules') 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) -- cgit v1.2.3