os_opernews.c File Reference

#include "module.h"

Include dependency graph for os_opernews.c:

Go to the source code of this file.

Functions

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

Variables

Commandc


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 63 of file os_opernews.c.

References Command_::help_param1.

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

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

Definition at line 30 of file os_opernews.c.

References alog(), BUFSIZE, 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, reload_config(), snprintf(), and sstrdup().

int load_config ( void   ) 

void myOperServHelp ( User u  ) 

Add the help response to anopes /os help output.

Parameters:
u The user who is requesting help

int reload_config ( int  argc,
char **  argv 
)

Upon /os reload refresh the count


Variable Documentation

Definition at line 18 of file os_opernews.c.


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