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

Go to the source code of this file.

Functions

static int do_akill (User *u)
 
static int akill_view_callback (SList *slist, int number, void *item, va_list args)
 
static int akill_view (int number, Akill *ak, User *u, int *sent_header)
 
static int akill_list_callback (SList *slist, int number, void *item, va_list args)
 
static int akill_list (int number, Akill *ak, User *u, int *sent_header)
 
static void myOperServHelp (User *u)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

static int akill_list ( int  number,
Akill ak,
User u,
int *  sent_header 
)
static

Definition at line 368 of file os_akill.c.

References BUFSIZE, akill_::host, notice_lang(), akill_::reason, s_OperServ, snprintf(), and akill_::user.

Referenced by akill_list_callback(), and do_akill().

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

Definition at line 347 of file os_akill.c.

References akill_list().

Referenced by do_akill().

static int akill_view ( int  number,
Akill ak,
User u,
int *  sent_header 
)
static
static int akill_view_callback ( SList slist,
int  number,
void *  item,
va_list  args 
)
static

Definition at line 358 of file os_akill.c.

References akill_view().

Referenced by do_akill().

void AnopeFini ( void  )

Unload the module

Definition at line 52 of file os_akill.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_akill.c.

References c, CORE, createCommand(), do_akill(), is_services_oper(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), and OPERSERV.

static int do_akill ( User u)
static

The /os command.

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

Changed sprintf() to snprintf()and increased the size of breason to match bufsize -Rob

Definition at line 77 of file os_akill.c.

References add_akill(), AddAkiller, akill_list(), akill_list_callback(), akill_view(), akill_view_callback(), akills, anope_cmd_global(), AutokillExpiry, BUFSIZE, 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(), sstrdup(), stricmp(), strspn(), syntax_error(), and WallOSAkill.

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 63 of file os_akill.c.

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

Referenced by AnopeInit().