]> jfr.im git - irc/quakenet/newserv.git/blob - helpmod2/helpmod.h
GLINES: fix null pointer deref in trustgline / trustungline
[irc/quakenet/newserv.git] / helpmod2 / helpmod.h
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 "../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
20 #include "huser.h"
21 #include "hversions.h"
22
23
24 /* configuration */
25
26 /* These should always be equal */
27 #define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_17
28 #define HELPMOD_VERSION "2.17"
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
44 extern int HELPMOD_ACCOUNT_EXPIRATION[];
45
46 extern nick *helpmodnick;
47
48 extern modechanges hmodechanges;
49
50 extern time_t helpmod_startup_time;
51
52 void hcommit_modes(void);
53
54 void helpmod_reply(huser *target, channel* returntype, const char *message, ... ) __attribute__ ((format (printf, 3, 4)));
55
56 void helpmod_message_channel_long(hchannel *hchan, const char *message, ...) __attribute__ ((format (printf, 2, 3)));
57 void helpmod_message_channel(hchannel *hchan, const char *message, ...) __attribute__ ((format (printf, 2, 3)));
58
59 void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...) __attribute__ ((format (printf, 3, 4)));
60
61 void helpmod_invite(hchannel *, huser *);
62
63 /* the last argument is a commit-now truth value */
64 void helpmod_channick_modes(huser *target, hchannel *hchan, short, int);
65 void helpmod_simple_modes(hchannel *hchan, int, int, int);
66 void helpmod_setban(hchannel *hchan, const char*, time_t, int, int);
67
68 void helpmod_set_topic(hchannel *hchan, const char* topic);
69
70 extern char helpmod_db[128];
71
72 extern long helpmod_usage;
73
74 #endif