00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "services.h"
00017 #include "pseudo.h"
00018
00019 void moduleAddHelpServCmds(void);
00020
00021
00022
00027 void moduleAddHelpServCmds(void)
00028 {
00029 modules_core_init(HelpServCoreNumber, HelpServCoreModules);
00030 }
00031
00032
00033
00038 void helpserv_init(void)
00039 {
00040 moduleAddHelpServCmds();
00041 }
00042
00043
00044
00051 void helpserv(User * u, char *buf)
00052 {
00053 char *cmd, *s;
00054
00055 cmd = strtok(buf, " ");
00056
00057 if (!cmd) {
00058 return;
00059 } else if (stricmp(cmd, "\1PING") == 0) {
00060 if (!(s = strtok(NULL, ""))) {
00061 s = "";
00062 }
00063 anope_cmd_ctcp(s_HelpServ, u->nick, "PING %s", s);
00064 } else {
00065 mod_run_cmd(s_HelpServ, u, HELPSERV, cmd);
00066 }
00067 }
00068
00069