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

Go to the source code of this file.

Functions

static int do_oper (User *u)
 
static int oper_list_callback (SList *slist, int number, void *item, va_list args)
 
static int oper_list (int number, NickCore *nc, User *u, int *sent_header)
 
static void myOperServHelp (User *u)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 49 of file os_oper.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 os_oper.c.

References c, CORE, createCommand(), do_oper(), Command_::help_param1, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), OPERSERV, and s_NickServ.

static int do_oper ( User u)
static
static void myOperServHelp ( User u)
static

Add the help response to anopes /os help output.

Parameters
uThe user who is requesting help

Definition at line 59 of file os_oper.c.

References notice_lang(), and s_OperServ.

Referenced by AnopeInit().

static int oper_list ( int  number,
NickCore nc,
User u,
int *  sent_header 
)
static

Definition at line 229 of file os_oper.c.

References nickcore_::display, notice_lang(), and s_OperServ.

Referenced by do_oper(), and oper_list_callback().

static int oper_list_callback ( SList slist,
int  number,
void *  item,
va_list  args 
)
static

Definition at line 245 of file os_oper.c.

References oper_list().

Referenced by do_oper().