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

Go to the source code of this file.

Functions

static int do_szline (User *u)
 
static void myOperServHelp (User *u)
 
static int szline_view_callback (SList *slist, int number, void *item, va_list args)
 
static int szline_list_callback (SList *slist, int number, void *item, va_list args)
 
static int szline_view (int number, SXLine *sx, User *u, int *sent_header)
 
static int szline_list (int number, SXLine *sx, User *u, int *sent_header)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 54 of file os_szline.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 32 of file os_szline.c.

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

static int do_szline ( User u)
static

The /os szline command.

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

Definition at line 76 of file os_szline.c.

References add_szline(), anope_cmd_global(), slist_::count, dotime(), slist_::list, match_wild_nocase(), MOD_CONT, user_::nick, notice_lang(), readonly, s_OperServ, slist_clear(), slist_delete(), slist_delete_range(), slist_enum(), slist_indexof(), snprintf(), stricmp(), strspn(), syntax_error(), szline_list(), szline_list_callback(), szline_view(), szline_view_callback(), SZLineExpiry, szlines, and WallOSSZLine.

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 64 of file os_szline.c.

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

Referenced by AnopeInit().

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

Definition at line 335 of file os_szline.c.

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

Referenced by do_szline(), and szline_list_callback().

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

Definition at line 324 of file os_szline.c.

References szline_list().

Referenced by do_szline().

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

Definition at line 313 of file os_szline.c.

References szline_view().

Referenced by do_szline().