]> jfr.im git - irc/quakenet/newserv.git/blame - helpmod2/helpmod.h
Large reorganisation of all Makefiles, including new configure script.
[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"
12e8bdaa
P
9#include "../control/control.h"
10#include "../lib/sstring.h"
11#include "../lib/irc_string.h"
12#include "../channel/channel.h"
13#include "../core/schedule.h"
14#include "../core/hooks.h"
15#include "../localuser/localuser.h"
16#include "../lib/irc_string.h"
17#include "../core/config.h"
18
19
c86edd1d 20#include "huser.h"
3a839281 21#include "hversions.h"
c86edd1d 22
12e8bdaa 23
c86edd1d
Q
24/* configuration */
25
3a839281 26/* These should always be equal */
052247fa
CP
27#define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_17
28#define HELPMOD_VERSION "2.17"
c86edd1d
Q
29
30#define HELPMOD_USER_TIMEOUT 1200
31
32#define HELPMOD_DEFAULT_DB "./helpmod2/helpmod.db"
33#define HELPMOD_FALLBACK_DB "./helpmod2/helpmod.db"
34
35#define HELPMOD_HELP_DEFAULT_DB "./helpmod2/help.db"
36
37#define HELPMOD_NICK "G"
38#define HELPMOD_AUTH "G"
39
40#define HELPMOD_QUEUE_TIMEOUT (7 * HDEF_m)
41
42#define HELPMOD_BAN_DURATION (2 * HDEF_h)
43
052247fa 44extern int HELPMOD_ACCOUNT_EXPIRATION[];
c86edd1d
Q
45
46extern nick *helpmodnick;
47
48extern modechanges hmodechanges;
49
50extern time_t helpmod_startup_time;
51
52void hcommit_modes(void);
53
54void helpmod_reply(huser *target, channel* returntype, const char *message, ... );
55
56void helpmod_message_channel_long(hchannel *hchan, const char *message, ...);
57void helpmod_message_channel(hchannel *hchan, const char *message, ...);
58
59void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...);
60
61void helpmod_invite(hchannel *, huser *);
62
63/* the last argument is a commit-now truth value */
64void helpmod_channick_modes(huser *target, hchannel *hchan, short, int);
65void helpmod_simple_modes(hchannel *hchan, int, int, int);
66void helpmod_setban(hchannel *hchan, const char*, time_t, int, int);
67
68void helpmod_set_topic(hchannel *hchan, const char* topic);
69
70extern char helpmod_db[128];
71
72extern long helpmod_usage;
73
74#endif