os_szline.c File Reference

#include "module.h"

Include dependency graph for os_szline.c:

Go to the source code of this file.

Functions

int do_szline (User *u)
void myOperServHelp (User *u)
int szline_view_callback (SList *slist, int number, void *item, va_list args)
int szline_list_callback (SList *slist, int number, void *item, va_list args)
int szline_view (int number, SXLine *sx, User *u, int *sent_header)
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 55 of file os_szline.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters:
argc Argument count
argv Argument list
Returns:
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 33 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.

int do_szline ( User u  ) 

The /os szline command.

Parameters:
u The user who issued the command
MOD_CONT to continue processing other modules, MOD_STOP to stop processing.

Definition at line 77 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().

void myOperServHelp ( User u  ) 

Add the help response to anopes /os help output.

Parameters:
u The user who is requesting help

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

Definition at line 336 of file os_szline.c.

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

Referenced by do_szline(), and szline_list_callback().

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

Definition at line 325 of file os_szline.c.

References szline_list().

Referenced by do_szline().

int szline_view ( int  number,
SXLine sx,
User u,
int *  sent_header 
)

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

Definition at line 314 of file os_szline.c.

References szline_view().

Referenced by do_szline().


Generated on Sun Oct 5 09:07:05 2008 for Anope by  doxygen 1.5.7.1