Functions

cs_akick.c File Reference

#include "module.h"
Include dependency graph for cs_akick.c:

Go to the source code of this file.

Functions

static int do_akick (User *u)
static void myChanServHelp (User *u)
static int get_access_nc (NickCore *nc, ChannelInfo *ci)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)
static int akick_del (User *u, AutoKick *akick)
static int akick_del_callback (User *u, int num, va_list args)
static int akick_list (User *u, int index, ChannelInfo *ci, int *sent_header)
static int akick_list_callback (User *u, int num, va_list args)
static int akick_view (User *u, int index, ChannelInfo *ci, int *sent_header)
static int akick_view_callback (User *u, int num, va_list args)

Function Documentation

static int akick_del ( User u,
AutoKick akick 
) [static]

The /cs akick command.

Parameters:
u The user who issued the command
MOD_CONT to continue processing other modules, MOD_STOP to stop processing.

Definition at line 70 of file cs_akick.c.

References AutoKick::addtime, AK_ISNICK, AK_USED, AutoKick::creator, AutoKick::flags, AutoKick::mask, AutoKick::nc, AutoKick::reason, and AutoKick::u.

Referenced by akick_del_callback(), and do_akick().

static int akick_del_callback ( User u,
int  num,
va_list  args 
) [static]

Definition at line 93 of file cs_akick.c.

References chaninfo_::akick, akick_del(), and chaninfo_::akickcount.

Referenced by do_akick().

static int akick_list ( User u,
int  index,
ChannelInfo ci,
int *  sent_header 
) [static]
static int akick_list_callback ( User u,
int  num,
va_list  args 
) [static]

Definition at line 126 of file cs_akick.c.

References akick_list(), and chaninfo_::akickcount.

Referenced by do_akick().

static int akick_view ( User u,
int  index,
ChannelInfo ci,
int *  sent_header 
) [static]
static int akick_view_callback ( User u,
int  num,
va_list  args 
) [static]

Definition at line 170 of file cs_akick.c.

References akick_view(), and chaninfo_::akickcount.

Referenced by do_akick().

void AnopeFini ( void   ) 

Unload the module

Definition at line 48 of file cs_akick.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters:
argc Argument count
argv Argument list
Returns:
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 28 of file cs_akick.c.

References c, CHANSERV, CORE, createCommand(), do_akick(), MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), and myChanServHelp().

static int do_akick ( User u  )  [static]
static int get_access_nc ( NickCore nc,
ChannelInfo ci 
) [static]

Definition at line 660 of file cs_akick.c.

References get_access_entry(), and ChanAccess::level.

Referenced by do_akick().

static void myChanServHelp ( User u  )  [static]

Add the help response to anopes /cs help output.

Parameters:
u The user who is requesting help

Definition at line 59 of file cs_akick.c.

References notice_lang(), and s_ChanServ.

Referenced by AnopeInit().