#include "module.h"
Go to the source code of this file.
Functions | |
| int | do_access (User *u) |
| int | do_levels (User *u) |
| void | myChanServHelp (User *u) |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
| static int | access_del (User *u, ChannelInfo *ci, ChanAccess *access, int *perm, int uacc) |
| static int | access_del_callback (User *u, int num, va_list args) |
| static int | access_list (User *u, int index, ChannelInfo *ci, int *sent_header) |
| static int | access_list_callback (User *u, int num, va_list args) |
| static int access_del | ( | User * | u, | |
| ChannelInfo * | ci, | |||
| ChanAccess * | access, | |||
| int * | perm, | |||
| int | uacc | |||
| ) | [static] |
Definition at line 74 of file cs_access.c.
References nickcore_::display, EVENT_ACCESS_DEL, ChanAccess::in_use, is_services_admin(), chaninfo_::name, ChanAccess::nc, user_::nick, and send_event().
Referenced by access_del_callback().
| static int access_del_callback | ( | User * | u, | |
| int | num, | |||
| va_list | args | |||
| ) | [static] |
Definition at line 90 of file cs_access.c.
References chaninfo_::access, access_del(), and chaninfo_::accesscount.
Referenced by do_access().
| static int access_list | ( | User * | u, | |
| int | index, | |||
| ChannelInfo * | ci, | |||
| int * | sent_header | |||
| ) | [static] |
Definition at line 103 of file cs_access.c.
References chaninfo_::access, CI_XOP, nickcore_::display, chaninfo_::flags, get_xop_level(), ChanAccess::in_use, ChanAccess::level, chaninfo_::name, ChanAccess::nc, notice_lang(), and s_ChanServ.
Referenced by access_list_callback(), and do_access().
| static int access_list_callback | ( | User * | u, | |
| int | num, | |||
| va_list | args | |||
| ) | [static] |
Definition at line 128 of file cs_access.c.
References access_list(), and chaninfo_::accesscount.
Referenced by do_access().
| void AnopeFini | ( | void | ) |
Unload the module
Definition at line 56 of file cs_access.c.
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
Definition at line 30 of file cs_access.c.
References c, CHANSERV, CORE, createCommand(), do_access(), do_levels(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), and myChanServHelp().
| int do_access | ( | User * | u | ) |
The /cs access command.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 143 of file cs_access.c.
References chaninfo_::access, access_del_callback(), ACCESS_FOUNDER, ACCESS_INVALID, access_list(), access_list_callback(), chaninfo_::accesscount, alog(), BUFSIZE, CA_ACCESS_CHANGE, CA_ACCESS_LIST, check_access(), CI_VERBOTEN, CI_XOP, cs_findchan(), CSAccessMax, nickcore_::display, EVENT_ACCESS_ADD, EVENT_ACCESS_CHANGE, EVENT_ACCESS_CLEAR, EVENT_ACCESS_DEL, findnick(), chaninfo_::flags, get_access(), ircdvars_::halfop, user_::host, ChanAccess::in_use, ircd, is_founder(), is_services_admin(), ChanAccess::last_seen, ChanAccess::level, match_wild_nocase(), MOD_CONT, chaninfo_::name, ChanAccess::nc, nickalias_::nc, nickalias_::nick, user_::nick, notice_lang(), NS_VERBOTEN, process_numlist(), readonly, s_ChanServ, send_event(), snprintf(), srealloc(), nickalias_::status, stricmp(), strspn(), syntax_error(), and user_::username.
Referenced by AnopeInit().
| int do_levels | ( | User * | u | ) |
Definition at line 426 of file cs_access.c.
References ACCESS_FOUNDER, ACCESS_INVALID, alog(), CA_AUTODEOP, CA_AUTOOP, CA_AUTOVOICE, CA_NOJOIN, CI_VERBOTEN, CI_XOP, cs_findchan(), error(), chaninfo_::flags, user_::host, is_founder(), is_services_admin(), levelinfo, levelinfo_maxwidth, chaninfo_::levels, MOD_CONT, chaninfo_::name, LevelInfo::name, user_::nick, notice_lang(), reset_levels(), s_ChanServ, stricmp(), strnicmp(), syntax_error(), user_::username, and LevelInfo::what.
Referenced by AnopeInit().
| void myChanServHelp | ( | User * | u | ) |
Add the help response to anopes /cs help output.
| u | The user who is requesting help |
Definition at line 67 of file cs_access.c.
References notice_lang(), and s_ChanServ.
Referenced by AnopeInit().
1.5.7.1