]> jfr.im git - irc/quakenet/newserv.git/blame - helpmod2/helpmod.h
Possible bufixes
[irc/quakenet/newserv.git] / helpmod2 / helpmod.h
CommitLineData
c86edd1d
Q
1/* some extern definitions */
2#ifndef HELPMOD_H
3#define HELPMOD_H
4
5#include <time.h>
6
7#include "../nick/nick.h"
8#include "../localuser/localuserchannel.h"
9#include "huser.h"
10
11/* configuration */
12
e908ecfa 13#define HELPMOD_VERSION "2.09"
c86edd1d
Q
14
15#define HELPMOD_USER_TIMEOUT 1200
16
17#define HELPMOD_DEFAULT_DB "./helpmod2/helpmod.db"
18#define HELPMOD_FALLBACK_DB "./helpmod2/helpmod.db"
19
20#define HELPMOD_HELP_DEFAULT_DB "./helpmod2/help.db"
21
22#define HELPMOD_NICK "G"
23#define HELPMOD_AUTH "G"
24
25#define HELPMOD_QUEUE_TIMEOUT (7 * HDEF_m)
26
27#define HELPMOD_BAN_DURATION (2 * HDEF_h)
28
29extern int HELPMOD_ACCOUNT_EXPIRATION[6];
30
31extern nick *helpmodnick;
32
33extern modechanges hmodechanges;
34
35extern time_t helpmod_startup_time;
36
37void hcommit_modes(void);
38
39void helpmod_reply(huser *target, channel* returntype, const char *message, ... );
40
41void helpmod_message_channel_long(hchannel *hchan, const char *message, ...);
42void helpmod_message_channel(hchannel *hchan, const char *message, ...);
43
44void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...);
45
46void helpmod_invite(hchannel *, huser *);
47
48/* the last argument is a commit-now truth value */
49void helpmod_channick_modes(huser *target, hchannel *hchan, short, int);
50void helpmod_simple_modes(hchannel *hchan, int, int, int);
51void helpmod_setban(hchannel *hchan, const char*, time_t, int, int);
52
53void helpmod_set_topic(hchannel *hchan, const char* topic);
54
55extern char helpmod_db[128];
56
57extern long helpmod_usage;
58
59#endif