Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Sjoin after kick  (Read 3978 times)

0 Members and 1 Guest are viewing this topic.

capitaine

  • Anope User
  • Offline Offline
  • Posts: 39
    • http://www.coolsmile.net
Sjoin after kick
« 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 ?
Logged

katsklaw

  • Guest
Re: Sjoin after kick
« Reply #1 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.
Logged

capitaine

  • Anope User
  • Offline Offline
  • Posts: 39
    • http://www.coolsmile.net
Re: Sjoin after kick
« Reply #2 on: November 07, 2008, 08:31:27 AM »

Ok thanks  :)
Logged
Pages: [1]   Go Up