#include "module.h"
Go to the source code of this file.
Functions | |
| int | do_xop (User *u, char *xname, int xlev, int *xmsgs) |
| int | do_aop (User *u) |
| int | do_hop (User *u) |
| int | do_sop (User *u) |
| int | do_vop (User *u) |
| void | myChanServHelp (User *u) |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
| int | xop_del (User *u, ChannelInfo *ci, ChanAccess *access, int *perm, int uacc, int xlev) |
| int | xop_del_callback (User *u, int num, va_list args) |
| int | xop_list (User *u, int index, ChannelInfo *ci, int *sent_header, int xlev, int xmsg) |
| int | xop_list_callback (User *u, int num, va_list args) |
Variables | |
| int | xop_msgs [4][14] |
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
Definition at line 91 of file cs_xop.c.
References c, CHANSERV, CORE, createCommand(), do_aop(), do_hop(), do_sop(), do_vop(), ircdvars_::halfop, ircd, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), and myChanServHelp().
| int do_aop | ( | User * | u | ) |
The /cs xop command.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 145 of file cs_xop.c.
References ACCESS_AOP, do_xop(), and xop_msgs.
Referenced by AnopeInit().
| int do_hop | ( | User * | u | ) |
Definition at line 152 of file cs_xop.c.
References ACCESS_HOP, do_xop(), and xop_msgs.
Referenced by AnopeInit().
| int do_sop | ( | User * | u | ) |
Definition at line 159 of file cs_xop.c.
References ACCESS_SOP, do_xop(), and xop_msgs.
Referenced by AnopeInit().
| int do_vop | ( | User * | u | ) |
Definition at line 166 of file cs_xop.c.
References ACCESS_VOP, do_xop(), and xop_msgs.
Referenced by AnopeInit().
| int do_xop | ( | User * | u, | |
| char * | xname, | |||
| int | xlev, | |||
| int * | xmsgs | |||
| ) |
Patch provided by PopCorn to prevert AOP's reducing SOP's levels
Definition at line 238 of file cs_xop.c.
References chaninfo_::access, ACCESS_AOP, chaninfo_::accesscount, alog(), BUFSIZE, 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(), user_::host, ChanAccess::in_use, is_founder(), is_services_admin(), ChanAccess::last_seen, ChanAccess::level, match_wild_nocase(), MOD_CONT, chaninfo_::name, ChanAccess::nc, nickalias_::nc, user_::nick, nickalias_::nick, notice_lang(), NS_VERBOTEN, process_numlist(), readonly, s_ChanServ, send_event(), snprintf(), srealloc(), nickalias_::status, stricmp(), strspn(), syntax_error(), user_::username, xop_del_callback(), xop_list(), and xop_list_callback().
| void myChanServHelp | ( | User * | u | ) |
Add the help response to anopes /cs help output.
| u | The user who is requesting help |
| int xop_del | ( | User * | u, | |
| ChannelInfo * | ci, | |||
| ChanAccess * | access, | |||
| int * | perm, | |||
| int | uacc, | |||
| int | xlev | |||
| ) |
Definition at line 175 of file cs_xop.c.
References nickcore_::display, EVENT_ACCESS_DEL, ChanAccess::in_use, is_services_admin(), ChanAccess::level, chaninfo_::name, ChanAccess::nc, user_::nick, and send_event().
Referenced by xop_del_callback().
| int xop_del_callback | ( | User * | u, | |
| int | num, | |||
| va_list | args | |||
| ) |
Definition at line 190 of file cs_xop.c.
References chaninfo_::access, chaninfo_::accesscount, and xop_del().
Referenced by do_xop().
| int xop_list | ( | User * | u, | |
| int | index, | |||
| ChannelInfo * | ci, | |||
| int * | sent_header, | |||
| int | xlev, | |||
| int | xmsg | |||
| ) |
Definition at line 206 of file cs_xop.c.
References chaninfo_::access, nickcore_::display, ChanAccess::in_use, ChanAccess::level, chaninfo_::name, ChanAccess::nc, notice_lang(), and s_ChanServ.
Referenced by do_xop(), and xop_list_callback().
| int xop_list_callback | ( | User * | u, | |
| int | num, | |||
| va_list | args | |||
| ) |
Definition at line 224 of file cs_xop.c.
References chaninfo_::accesscount, and xop_list().
Referenced by do_xop().
| int xop_msgs[4][14] |
1.5.7.1