]> jfr.im git - irc/quakenet/newserv.git/blame - helpmod2/hcommand.h
Large reorganisation of all Makefiles, including new configure script.
[irc/quakenet/newserv.git] / helpmod2 / hcommand.h
CommitLineData
c86edd1d
Q
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
13typedef void (*hcommand_function)(huser *, channel*, char*, int, char **);
14
15typedef 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
24extern hcommand* hcommands;
25
26hcommand* hcommand_add(const char *, hlevel, hcommand_function, const char *);
27
28int hcommand_del(const char *);
29
30int hcommand_del_all(void);
31
32hcommand* hcommand_get(const char *, hlevel);
33
34hcommand* hcommand_list(hlevel);
35
36int hcommand_is_command(const char*);
37
38
39#endif