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

Go to the source code of this file.


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_opernews.c.

int AnopeInit ( int  argc,
char **  argv 

Create the command, and tell anope about it.

argcArgument count
argvArgument list
MOD_CONT to allow the module, MOD_STOP to stop it

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

Definition at line 26 of file os_opernews.c.

References alog(), c, CORE, createCommand(), createEventHook(), do_opernews(), 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)

Add the help response to anopes /os help output.

uThe user who is requesting help

Definition at line 67 of file os_opernews.c.

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

Referenced by AnopeInit().

static int reload_config ( int  argc,
char **  argv 

Upon /os reload refresh the count

Definition at line 77 of file os_opernews.c.

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

Referenced by AnopeInit().