Anope IRC Services  Version 1.8
Functions
bs_badwords.c File Reference
#include "module.h"
Include dependency graph for bs_badwords.c:

Go to the source code of this file.

Functions

static int do_badwords (User *u)
 
static void myBotServHelp (User *u)
 
static int badwords_del_callback (User *u, int num, va_list args)
 
static int badwords_list (User *u, int index, ChannelInfo *ci, int *sent_header)
 
static int badwords_list_callback (User *u, int num, va_list args)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 49 of file bs_badwords.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 29 of file bs_badwords.c.

References BOTSERV, c, CORE, createCommand(), do_badwords(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetBotHelp(), moduleSetType(), and myBotServHelp().

static int badwords_del_callback ( User u,
int  num,
va_list  args 
)
static

Definition at line 286 of file bs_badwords.c.

References chaninfo_::badwords, chaninfo_::bwcount, badword_::in_use, and badword_::word.

Referenced by do_badwords().

static int badwords_list ( User u,
int  index,
ChannelInfo ci,
int *  sent_header 
)
static
static int badwords_list_callback ( User u,
int  num,
va_list  args 
)
static

Definition at line 328 of file bs_badwords.c.

References badwords_list(), and chaninfo_::bwcount.

Referenced by do_badwords().

static int do_badwords ( User u)
static
static void myBotServHelp ( User u)
static

Add the help response to Anopes /bs help output.

Parameters
uThe user who is requesting help

Definition at line 60 of file bs_badwords.c.

References notice_lang(), and s_BotServ.

Referenced by AnopeInit().