Anope IRC Services

Anope Development => Modules => Topic started by: capitaine on November 05, 2008, 04:42:56 PM

Title: Sjoin after kick
Post by: capitaine on November 05, 2008, 04:42:56 PM
Is it possible to re-use Chanserv behaviour in check_kick() ?

In fact, I need to make a module which kickban a user for a reason.
But if the chan he joined was empty, of course I want Chanserv to keep the chan for a while, so the ban stay too.

So is there a way, a call from to do it a module without cut/paste the core's code ?
Title: Re: Sjoin after kick
Post by: katsklaw on November 06, 2008, 01:44:49 AM
you can call check_kick() directly from the module and it's not hard to inhabit the channel using chanserv's CSInhabit limit either. There is an old anope module called cs_mkick that has an example of how to inhabit the channel.
Title: Re: Sjoin after kick
Post by: capitaine on November 07, 2008, 08:31:27 AM
Ok thanks  :)