Anope IRC Services  Version 1.8
helpserv.c
Go to the documentation of this file.
1 /* HelpServ 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 "services.h"
16 #include "pseudo.h"
17 
18 void moduleAddHelpServCmds(void);
19 
20 /*************************************************************************/
21 
27 {
29 }
30 
31 /*************************************************************************/
32 
37 void helpserv_init(void)
38 {
40 }
41 
42 /*************************************************************************/
43 
50 void helpserv(User * u, char *buf)
51 {
52  char *cmd, *s;
53 
54  cmd = strtok(buf, " ");
55 
56  if (!cmd) {
57  return;
58  } else if (stricmp(cmd, "\1PING") == 0) {
59  if (!(s = strtok(NULL, ""))) {
60  s = "";
61  }
62  anope_cmd_ctcp(s_HelpServ, u->nick, "PING %s", s);
63  } else {
65  }
66 }
67 
68 /*************************************************************************/
char nick[NICKMAX]
Definition: services.h:875
E char ** HelpServCoreModules
Definition: extern.h:485
E int stricmp(const char *s1, const char *s2)
Definition: compat.c:58
E void modules_core_init(int number, char **list)
Definition: modules.c:127
void helpserv_init(void)
Definition: helpserv.c:37
E char * s_HelpServ
Definition: extern.h:288
#define HELPSERV
Definition: modules.h:61
void helpserv(User *u, char *buf)
Definition: helpserv.c:50
void moduleAddHelpServCmds(void)
Definition: helpserv.c:26
E int HelpServCoreNumber
Definition: extern.h:486
MDE void mod_run_cmd(char *service, User *u, CommandHash *cmdTable[], const char *cmd)
Definition: commands.c:67
E void anope_cmd_ctcp(char *source, char *dest, const char *fmt,...)
Definition: ircd.c:672