]> jfr.im git - irc/quakenet/newserv.git/blame - helpmod2/helpmod.h
Reorganise the JIT bit
[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"
3a839281 10#include "hversions.h"
c86edd1d
Q
11
12/* configuration */
13
3a839281 14/* These should always be equal */
9f824c95 15#define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_15
16#define HELPMOD_VERSION "2.15"
c86edd1d
Q
17
18#define HELPMOD_USER_TIMEOUT 1200
19
20#define HELPMOD_DEFAULT_DB "./helpmod2/helpmod.db"
21#define HELPMOD_FALLBACK_DB "./helpmod2/helpmod.db"
22
23#define HELPMOD_HELP_DEFAULT_DB "./helpmod2/help.db"
24
25#define HELPMOD_NICK "G"
26#define HELPMOD_AUTH "G"
27
28#define HELPMOD_QUEUE_TIMEOUT (7 * HDEF_m)
29
30#define HELPMOD_BAN_DURATION (2 * HDEF_h)
31
32extern int HELPMOD_ACCOUNT_EXPIRATION[6];
33
34extern nick *helpmodnick;
35
36extern modechanges hmodechanges;
37
38extern time_t helpmod_startup_time;
39
40void hcommit_modes(void);
41
42void helpmod_reply(huser *target, channel* returntype, const char *message, ... );
43
44void helpmod_message_channel_long(hchannel *hchan, const char *message, ...);
45void helpmod_message_channel(hchannel *hchan, const char *message, ...);
46
47void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...);
48
49void helpmod_invite(hchannel *, huser *);
50
51/* the last argument is a commit-now truth value */
52void helpmod_channick_modes(huser *target, hchannel *hchan, short, int);
53void helpmod_simple_modes(hchannel *hchan, int, int, int);
54void helpmod_setban(hchannel *hchan, const char*, time_t, int, int);
55
56void helpmod_set_topic(hchannel *hchan, const char* topic);
57
58extern char helpmod_db[128];
59
60extern long helpmod_usage;
61
62#endif