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

Go to the source code of this file.

Functions

static int do_access (User *u)
 
static int do_levels (User *u)
 
static 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)
 

Function Documentation

static int access_del ( User u,
ChannelInfo ci,
ChanAccess access,
int *  perm,
int  uacc 
)
static
static int access_del_callback ( User u,
int  num,
va_list  args 
)
static

Definition at line 89 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
static int access_list_callback ( User u,
int  num,
va_list  args 
)
static

Definition at line 127 of file cs_access.c.

References access_list(), and chaninfo_::accesscount.

Referenced by do_access().

void AnopeFini ( void  )

Unload the module

Definition at line 55 of file cs_access.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 29 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().

static int do_access ( User u)
static
static int do_levels ( User u)
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 66 of file cs_access.c.

References notice_lang(), and s_ChanServ.

Referenced by AnopeInit().