]>
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" | |
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 | ||
29 | extern int HELPMOD_ACCOUNT_EXPIRATION[6]; | |
30 | ||
31 | extern nick *helpmodnick; | |
32 | ||
33 | extern modechanges hmodechanges; | |
34 | ||
35 | extern time_t helpmod_startup_time; | |
36 | ||
37 | void hcommit_modes(void); | |
38 | ||
39 | void helpmod_reply(huser *target, channel* returntype, const char *message, ... ); | |
40 | ||
41 | void helpmod_message_channel_long(hchannel *hchan, const char *message, ...); | |
42 | void helpmod_message_channel(hchannel *hchan, const char *message, ...); | |
43 | ||
44 | void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...); | |
45 | ||
46 | void helpmod_invite(hchannel *, huser *); | |
47 | ||
48 | /* the last argument is a commit-now truth value */ | |
49 | void helpmod_channick_modes(huser *target, hchannel *hchan, short, int); | |
50 | void helpmod_simple_modes(hchannel *hchan, int, int, int); | |
51 | void helpmod_setban(hchannel *hchan, const char*, time_t, int, int); | |
52 | ||
53 | void helpmod_set_topic(hchannel *hchan, const char* topic); | |
54 | ||
55 | extern char helpmod_db[128]; | |
56 | ||
57 | extern long helpmod_usage; | |
58 | ||
59 | #endif |