]> jfr.im git - irc/quakenet/newserv.git/blob - helpmod2/hcommand.h
Initial Import
[irc/quakenet/newserv.git] / helpmod2 / hcommand.h
1 /* new H command system */
2
3 #ifndef HCOMMAND_H
4 #define HCOMMAND_H
5
6 #include "../lib/sstring.h"
7 #include "../nick/nick.h"
8
9 #include "hdef.h"
10 #include "huser.h"
11 #include "../channel/channel.h"
12
13 typedef void (*hcommand_function)(huser *, channel*, char*, int, char **);
14
15 typedef struct hcommand_struct
16 {
17 sstring* name;
18 sstring* help;
19 hlevel level;
20 hcommand_function function;
21 struct hcommand_struct *next;
22 } hcommand;
23
24 extern hcommand* hcommands;
25
26 hcommand* hcommand_add(const char *, hlevel, hcommand_function, const char *);
27
28 int hcommand_del(const char *);
29
30 int hcommand_del_all(void);
31
32 hcommand* hcommand_get(const char *, hlevel);
33
34 hcommand* hcommand_list(hlevel);
35
36 int hcommand_is_command(const char*);
37
38
39 #endif