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

Go to the source code of this file.

Macros

#define AUTHOR   "Rob"
 
#define VERSION   VERSION_STRING
 
#define LANG_NUM_STRINGS   4
 
#define TBAN_HELP   0
 
#define TBAN_SYNTAX   1
 
#define TBAN_HELP_DETAIL   2
 
#define TBAN_RESPONSE   3
 

Functions

static void myHelp (User *u)
 
static void myFullHelpSyntax (User *u)
 
static int myFullHelp (User *u)
 
static void mySendResponse (User *u, char *channel, char *mask, char *time)
 
static int do_tban (User *u)
 
static void addBan (Channel *c, time_t timeout, char *banmask)
 
static int delBan (int argc, char **argv)
 
static int canBanUser (Channel *c, User *u, User *u2)
 
static void mAddLanguages (void)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Macro Definition Documentation

#define AUTHOR   "Rob"

Definition at line 21 of file cs_tban.c.

Referenced by AnopeInit().

#define LANG_NUM_STRINGS   4

Definition at line 36 of file cs_tban.c.

Referenced by mAddLanguages().

#define TBAN_HELP   0

Definition at line 37 of file cs_tban.c.

Referenced by myHelp().

#define TBAN_HELP_DETAIL   2

Definition at line 39 of file cs_tban.c.

Referenced by myFullHelp().

#define TBAN_RESPONSE   3

Definition at line 40 of file cs_tban.c.

Referenced by mySendResponse().

#define TBAN_SYNTAX   1

Definition at line 38 of file cs_tban.c.

Referenced by myFullHelpSyntax().

#define VERSION   VERSION_STRING

Definition at line 22 of file cs_tban.c.

Referenced by AnopeInit().

Function Documentation

static void addBan ( Channel c,
time_t  timeout,
char *  banmask 
)
static
void AnopeFini ( void  )

Definition at line 64 of file cs_tban.c.

int AnopeInit ( int  argc,
char **  argv 
)
static int canBanUser ( Channel c,
User u,
User u2 
)
static
static int delBan ( int  argc,
char **  argv 
)
static
static int do_tban ( User u)
static
static void mAddLanguages ( void  )
static

Definition at line 191 of file cs_tban.c.

References LANG_DE, LANG_EN_US, LANG_FR, LANG_IT, LANG_NL, LANG_NUM_STRINGS, LANG_PT, LANG_RU, and moduleInsertLanguage().

Referenced by AnopeInit().

static int myFullHelp ( User u)
static

Definition at line 79 of file cs_tban.c.

References MOD_CONT, moduleNoticeLang(), myFullHelpSyntax(), user_::nick, notice(), s_ChanServ, and TBAN_HELP_DETAIL.

Referenced by AnopeInit().

static void myFullHelpSyntax ( User u)
static

Definition at line 74 of file cs_tban.c.

References moduleNoticeLang(), s_ChanServ, and TBAN_SYNTAX.

Referenced by do_tban(), and myFullHelp().

static void myHelp ( User u)
static

Definition at line 69 of file cs_tban.c.

References moduleNoticeLang(), s_ChanServ, and TBAN_HELP.

Referenced by AnopeInit().

static void mySendResponse ( User u,
char *  channel,
char *  mask,
char *  time 
)
static

Definition at line 87 of file cs_tban.c.

References moduleNoticeLang(), s_ChanServ, and TBAN_RESPONSE.

Referenced by do_tban().