#include "module.h"
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) |
The /cs akick command.
| 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] |
Definition at line 107 of file cs_akick.c.
References AK_ISNICK, AK_USED, chaninfo_::akick, AutoKick::flags, getstring, AutoKick::mask, user_::na, chaninfo_::name, AutoKick::nc, notice_lang(), AutoKick::reason, s_ChanServ, and AutoKick::u.
Referenced by akick_list_callback(), and do_akick().
| 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] |
Definition at line 135 of file cs_akick.c.
References AutoKick::addtime, AK_ISNICK, AK_STUCK, AK_USED, chaninfo_::akick, AutoKick::creator, AutoKick::flags, getstring, AutoKick::mask, user_::na, chaninfo_::name, AutoKick::nc, notice_lang(), AutoKick::reason, s_ChanServ, snprintf(), strftime_lang(), and AutoKick::u.
Referenced by akick_view_callback(), and do_akick().
| 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.
| argc | Argument count | |
| argv | Argument list |
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] |
Definition at line 181 of file cs_akick.c.
References AutoKick::addtime, AK_ISNICK, AK_USED, chaninfo_::akick, akick_del(), akick_del_callback(), akick_list(), akick_list_callback(), akick_view(), akick_view_callback(), chaninfo_::akickcount, alog(), BUFSIZE, chaninfo_::c, c, CA_AKICK, check_access(), check_kick(), CI_PEACE, CI_VERBOTEN, channel_::creation_time, AutoKick::creator, cs_findchan(), CSAutokickMax, CSAutokickReason, nickcore_::display, do_kick(), ircdvars_::except, findchan(), findnick(), AutoKick::flags, chaninfo_::flags, chaninfo_::founder, get_access(), get_access_nc(), user_::host, ircd, is_excepted_mask(), is_founder(), is_services_admin(), AutoKick::mask, match_usermask(), match_wild_nocase(), nalists, channel_::name, chaninfo_::name, AutoKick::nc, nickalias_::nc, channel_::c_userlist::next, nickalias_::next, user_::next, user_::nick, notice_lang(), NS_VERBOTEN, process_numlist(), readonly, AutoKick::reason, s_ChanServ, scalloc(), snprintf(), split_usermask(), srealloc(), sstrdup(), nickalias_::status, stick_mask(), stricmp(), strspn(), syntax_error(), AutoKick::u, userlist, user_::username, and channel_::users.
Referenced by AnopeInit().
| 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.
| 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().
1.7.1