os_sgline.c File Reference

#include "module.h"

Go to the source code of this file.

Functions

void AnopeFini (void)
int AnopeInit (int argc, char **argv)
int do_sgline (User *u)
void myOperServHelp (User *u)
int sgline_list (int number, SXLine *sx, User *u, int *sent_header)
int sgline_list_callback (SList *slist, int number, void *item, va_list args)
int sgline_view (int number, SXLine *sx, User *u, int *sent_header)
int sgline_view_callback (SList *slist, int number, void *item, va_list args)


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 57 of file os_sgline.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 34 of file os_sgline.c.

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

int do_sgline ( User u  ) 

The /os sgline command.

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

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

void myOperServHelp ( User u  ) 

Add the help response to anopes /os help output.

Parameters:
u The user who is requesting help

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

Definition at line 337 of file os_sgline.c.

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

Referenced by do_sgline(), and sgline_list_callback().

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

Definition at line 355 of file os_sgline.c.

References sgline_list().

Referenced by do_sgline().

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

Definition at line 301 of file os_sgline.c.

References sxline_::by, expire_left(), sxline_::expires, sxline_::mask, user_::na, notice_lang(), sxline_::reason, s_OperServ, sxline_::seton, and strftime_lang().

Referenced by do_sgline(), and sgline_view_callback().

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

Definition at line 326 of file os_sgline.c.

References sgline_view().

Referenced by do_sgline().


Generated on Sun Dec 30 09:26:56 2007 for Anope by  doxygen 1.5.1-20070107