]>
Commit | Line | Data |
---|---|---|
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 | 44 | extern int HELPMOD_ACCOUNT_EXPIRATION[]; |
c86edd1d Q |
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 | ||
bb4b25ee | 54 | void helpmod_reply(huser *target, channel* returntype, const char *message, ... ) __attribute__ ((format (printf, 3, 4))); |
c86edd1d | 55 | |
bb4b25ee CP |
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))); | |
c86edd1d | 58 | |
bb4b25ee | 59 | void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...) __attribute__ ((format (printf, 3, 4))); |
c86edd1d Q |
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 |