1 /* some extern definitions */
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"
21 #include "hversions.h"
26 /* These should always be equal */
27 #define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_17
28 #define HELPMOD_VERSION "2.17"
30 #define HELPMOD_USER_TIMEOUT 1200
32 #define HELPMOD_DEFAULT_DB "./helpmod2/helpmod.db"
33 #define HELPMOD_FALLBACK_DB "./helpmod2/helpmod.db"
35 #define HELPMOD_HELP_DEFAULT_DB "./helpmod2/help.db"
37 #define HELPMOD_NICK "G"
38 #define HELPMOD_AUTH "G"
40 #define HELPMOD_QUEUE_TIMEOUT (7 * HDEF_m)
42 #define HELPMOD_BAN_DURATION (2 * HDEF_h)
44 extern int HELPMOD_ACCOUNT_EXPIRATION
[];
46 extern nick
*helpmodnick
;
48 extern modechanges hmodechanges
;
50 extern time_t helpmod_startup_time
;
52 void hcommit_modes(void);
54 void helpmod_reply(huser
*target
, channel
* returntype
, const char *message
, ... ) __attribute__ ((format (printf
, 3, 4)));
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)));
59 void helpmod_kick(hchannel
*hchan
, huser
*target
, const char *reason
, ...) __attribute__ ((format (printf
, 3, 4)));
61 void helpmod_invite(hchannel
*, huser
*);
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);
68 void helpmod_set_topic(hchannel
*hchan
, const char* topic
);
70 extern char helpmod_db
[128];
72 extern long helpmod_usage
;