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

Go to the source code of this file.

Functions

static void myOperServHelp (User *u)
 
static int reload_config (int argc, char **argv)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 58 of file os_logonnews.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

For some unknown reason, do_logonnews is actaully defined in news.c we can look at moving it here later

Definition at line 26 of file os_logonnews.c.

References alog(), c, CORE, createCommand(), createEventHook(), do_logonnews(), EVENT_RELOAD, Command_::help_param1, is_services_admin(), MOD_CONT, MOD_ERR_OK, MOD_STOP, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddEventHook(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), NewsCount, OPERSERV, and reload_config().

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 67 of file os_logonnews.c.

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

Referenced by AnopeInit().

static int reload_config ( int  argc,
char **  argv 
)
static

Upon /os reload refresh the count

Definition at line 78 of file os_logonnews.c.

References c, EVENT_START, findCommand(), Command_::help_param1, MOD_CONT, NewsCount, OPERSERV, and stricmp().

Referenced by AnopeInit().