cs_tban.c File Reference

#include "module.h"

Go to the source code of this file.

Defines

#define AUTHOR   "Rob"
#define LANG_NUM_STRINGS   4
#define TBAN_HELP   0
#define TBAN_HELP_DETAIL   2
#define TBAN_RESPONSE   3
#define TBAN_SYNTAX   1
#define VERSION   "$Id: cs_tban.c 1267 2007-08-26 18:43:43Z drstein $"

Functions

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


Define Documentation

#define AUTHOR   "Rob"

Definition at line 21 of file cs_tban.c.

#define LANG_NUM_STRINGS   4

Definition at line 36 of file cs_tban.c.

Referenced by m_AddLanguages(), and 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   "$Id: cs_tban.c 1267 2007-08-26 18:43:43Z drstein $"

Definition at line 22 of file cs_tban.c.


Function Documentation

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

Definition at line 133 of file cs_tban.c.

References anope_cmd_mode(), chan_set_modes(), channel_::ci, delBan(), moduleAddCallback(), channel_::name, s_ChanServ, sstrdup(), and whosends.

Referenced by do_tban().

void AnopeFini ( void   ) 

Definition at line 64 of file cs_tban.c.

int AnopeInit ( int  argc,
char **  argv 
)

Definition at line 42 of file cs_tban.c.

References AUTHOR, CHANSERV, createCommand(), do_tban(), mAddLanguages(), MOD_CONT, MOD_ERR_OK, MOD_HEAD, MOD_STOP, moduleAddAuthor(), moduleAddCommand(), moduleAddHelp(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), myFullHelp(), myHelp(), SUPPORTED, and VERSION.

int canBanUser ( Channel c,
User u,
User u2 
)

Definition at line 169 of file cs_tban.c.

References CA_BAN, check_access(), channel_::ci, CI_VERBOTEN, ircdvars_::except, chaninfo_::flags, ircd, is_excepted(), is_protected(), chaninfo_::name, channel_::name, user_::nick, notice_lang(), ircdvars_::protectedumode, and s_ChanServ.

Referenced by do_tban().

int delBan ( int  argc,
char **  argv 
)

Definition at line 151 of file cs_tban.c.

References anope_cmd_mode(), chan_set_modes(), channel_::ci, findchan(), MOD_CONT, channel_::name, s_ChanServ, sstrdup(), and whosends.

Referenced by addBan().

int do_tban ( User u  ) 

Definition at line 92 of file cs_tban.c.

References addBan(), BUFSIZE, canBanUser(), channel_::ci, dotime(), findchan(), finduser(), get_idealban(), MOD_CONT, moduleGetLastBuffer(), myFullHelpSyntax(), mySendResponse(), myStrGetToken(), notice_lang(), and s_ChanServ.

Referenced by AnopeInit().

void mAddLanguages ( void   ) 

Definition at line 191 of file cs_tban.c.

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

Referenced by AnopeInit().

int myFullHelp ( User u  ) 

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().

void myFullHelpSyntax ( User u  ) 

Definition at line 74 of file cs_tban.c.

References moduleNoticeLang(), s_ChanServ, and TBAN_SYNTAX.

Referenced by do_tban(), and myFullHelp().

void myHelp ( User u  ) 

Definition at line 69 of file cs_tban.c.

References moduleNoticeLang(), s_ChanServ, and TBAN_HELP.

Referenced by AnopeInit().

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

Definition at line 87 of file cs_tban.c.

References moduleNoticeLang(), s_ChanServ, and TBAN_RESPONSE.

Referenced by do_tban().


Generated on Sun Dec 30 09:26:57 2007 for Anope by  doxygen 1.5.1-20070107