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

Go to the source code of this file.


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

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 50 of file os_randomnews.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_randomnews is actaully defined in news.c we can look at moving it here later

Definition at line 25 of file os_randomnews.c.

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

static void myOperServHelp ( User u)

Add the help response to anopes /os help output.

uThe user who is requesting help

Definition at line 60 of file os_randomnews.c.

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

Referenced by AnopeInit().