#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 LANG_NUM_STRINGS 4 |
| #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 $" |
| 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().
| 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.
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().
1.5.1-20070107