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

Go to the source code of this file.

Functions

static int do_sqline (User *u)
 
static int sqline_view_callback (SList *slist, int number, void *item, va_list args)
 
static int sqline_view (int number, SXLine *sx, User *u, int *sent_header)
 
static int sqline_list_callback (SList *slist, int number, void *item, va_list args)
 
static int sqline_list (int number, SXLine *sx, 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 55 of file os_sqline.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 33 of file os_sqline.c.

References c, CORE, createCommand(), do_sqline(), ircd, is_services_oper(), MOD_CONT, MOD_STOP, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), OPERSERV, and ircdvars_::sqline.

static int do_sqline ( 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 65 of file os_sqline.c.

References is_services_oper(), notice_lang(), and s_OperServ.

Referenced by AnopeInit().

static int sqline_list ( int  number,
SXLine sx,
User u,
int *  sent_header 
)
static

Definition at line 329 of file os_sqline.c.

References sxline_::mask, notice_lang(), sxline_::reason, and s_OperServ.

Referenced by do_sqline(), and sqline_list_callback().

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

Definition at line 347 of file os_sqline.c.

References sqline_list().

Referenced by do_sqline().

static int sqline_view ( int  number,
SXLine sx,
User u,
int *  sent_header 
)
static
static int sqline_view_callback ( SList slist,
int  number,
void *  item,
va_list  args 
)
static

Definition at line 318 of file os_sqline.c.

References sqline_view().

Referenced by do_sqline().