Anope IRC Services  Version 1.8
os_randomnews.c
Go to the documentation of this file.
1 /* OperServ core functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  *
12  */
13 /*************************************************************************/
14 
15 #include "module.h"
16 
17 static void myOperServHelp(User * u);
18 
25 int AnopeInit(int argc, char **argv)
26 {
27  Command *c;
28 
29  moduleAddAuthor("Anope");
31  (VERSION_STRING);
33 
39  NEWS_HELP_RANDOM, -1, -1, -1, -1);
41 
43 
44  return MOD_CONT;
45 }
46 
50 void AnopeFini(void)
51 {
52 
53 }
54 
55 
60 static void myOperServHelp(User * u)
61 {
62  if (is_services_admin(u)) {
63  notice_lang(s_OperServ, u, OPER_HELP_CMD_RANDOMNEWS);
64  }
65 }
void AnopeFini(void)
Definition: os_randomnews.c:50
MDE void moduleAddAuthor(const char *author)
Definition: modules.c:1772
E void notice_lang(char *source, User *dest, int message,...)
Definition: send.c:169
MDE void moduleSetType(MODType type)
Definition: modules.c:818
#define OPERSERV
Definition: modules.h:62
E char * s_OperServ
Definition: extern.h:289
E int do_randomnews(User *u)
Definition: news.c:351
MDE void moduleAddVersion(const char *version)
Definition: modules.c:1760
Command * c
Definition: ns_recover.c:17
static void myOperServHelp(User *u)
Definition: os_randomnews.c:60
MDE void moduleSetOperHelp(void(*func)(User *u))
Definition: modules.c:2126
#define MOD_CONT
Definition: modules.h:54
E int is_services_admin(User *u)
Definition: operserv.c:591
Definition: modules.h:99
MDE Command * createCommand(const char *name, int(*func)(User *u), int(*has_priv)(User *u), int help_all, int help_reg, int help_oper, int help_admin, int help_root)
Definition: modules.c:987
int AnopeInit(int argc, char **argv)
Definition: os_randomnews.c:25
MDE int moduleAddCommand(CommandHash *cmdTable[], Command *c, int pos)
Definition: modules.c:1082
#define MOD_UNIQUE
Definition: module.h:11