Anope IRC Services  Version 1.8
Functions | Variables
cs_xop.c File Reference
#include "module.h"
Include dependency graph for cs_xop.c:

Go to the source code of this file.

Functions

static int do_xop (User *u, char *xname, int xlev, int *xmsgs)
 
static int do_aop (User *u)
 
static int do_hop (User *u)
 
static int do_sop (User *u)
 
static int do_vop (User *u)
 
static void myChanServHelp (User *u)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 
static int xop_del (User *u, ChannelInfo *ci, ChanAccess *access, int *perm, int uacc, int xlev)
 
static int xop_del_callback (User *u, int num, va_list args)
 
static int xop_list (User *u, int index, ChannelInfo *ci, int *sent_header, int xlev, int xmsg)
 
static int xop_list_callback (User *u, int num, va_list args)
 

Variables

static int xop_msgs [4][14]
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 115 of file cs_xop.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 90 of file cs_xop.c.

References c, CHANSERV, CORE, createCommand(), do_aop(), do_hop(), do_sop(), do_vop(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), and myChanServHelp().

static int do_aop ( User u)
static

The /cs xop command.

Parameters
uThe user who issued the command
MOD_CONTto continue processing other modules, MOD_STOP to stop processing.

Definition at line 141 of file cs_xop.c.

References ACCESS_AOP, do_xop(), and xop_msgs.

Referenced by AnopeInit().

static int do_hop ( User u)
static

Definition at line 148 of file cs_xop.c.

References ACCESS_HOP, do_xop(), ircdvars_::halfop, ircd, MOD_CONT, and xop_msgs.

Referenced by AnopeInit().

static int do_sop ( User u)
static

Definition at line 157 of file cs_xop.c.

References ACCESS_SOP, do_xop(), and xop_msgs.

Referenced by AnopeInit().

static int do_vop ( User u)
static

Definition at line 164 of file cs_xop.c.

References ACCESS_VOP, do_xop(), and xop_msgs.

Referenced by AnopeInit().

static int do_xop ( User u,
char *  xname,
int  xlev,
int *  xmsgs 
)
static
static void myChanServHelp ( User u)
static

Add the help response to anopes /cs help output.

Parameters
uThe user who is requesting help

Definition at line 126 of file cs_xop.c.

References ircdvars_::halfop, ircd, notice_lang(), and s_ChanServ.

Referenced by AnopeInit().

static int xop_del ( User u,
ChannelInfo ci,
ChanAccess access,
int *  perm,
int  uacc,
int  xlev 
)
static
static int xop_del_callback ( User u,
int  num,
va_list  args 
)
static

Definition at line 189 of file cs_xop.c.

References chaninfo_::access, chaninfo_::accesscount, and xop_del().

Referenced by do_xop().

static int xop_list ( User u,
int  index,
ChannelInfo ci,
int *  sent_header,
int  xlev,
int  xmsg 
)
static
static int xop_list_callback ( User u,
int  num,
va_list  args 
)
static

Definition at line 223 of file cs_xop.c.

References chaninfo_::accesscount, and xop_list().

Referenced by do_xop().

Variable Documentation

int xop_msgs[4][14]
static

Definition at line 25 of file cs_xop.c.

Referenced by do_aop(), do_hop(), do_sop(), and do_vop().