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

Go to the source code of this file.

Functions

static int sgline_view_callback (SList *slist, int number, void *item, va_list args)
 
static int sgline_view (int number, SXLine *sx, User *u, int *sent_header)
 
static int sgline_list_callback (SList *slist, int number, void *item, va_list args)
 
static int sgline_list (int number, SXLine *sx, User *u, int *sent_header)
 
static int do_sgline (User *u)
 
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 56 of file os_sgline.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_sgline.c.

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

static int do_sgline ( User u)
static

The /os sgline command.

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

Definition at line 78 of file os_sgline.c.

References add_sgline(), anope_cmd_global(), slist_::count, dotime(), slist_::list, match_wild_nocase(), MOD_CONT, user_::nick, notice_lang(), readonly, s_OperServ, sgline_list(), sgline_list_callback(), sgline_view(), sgline_view_callback(), SGLineExpiry, sglines, slist_clear(), slist_delete(), slist_delete_range(), slist_enum(), slist_indexof(), snprintf(), stricmp(), strspn(), syntax_error(), and WallOSSGLine.

Referenced by AnopeInit().

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 66 of file os_sgline.c.

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

Referenced by AnopeInit().

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

Definition at line 336 of file os_sgline.c.

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

Referenced by do_sgline(), and sgline_list_callback().

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

Definition at line 354 of file os_sgline.c.

References sgline_list().

Referenced by do_sgline().

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

Definition at line 325 of file os_sgline.c.

References sgline_view().

Referenced by do_sgline().