]> jfr.im git - irc/quakenet/newserv.git/blobdiff - helpmod2/helpmod.h
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / helpmod2 / helpmod.h
index 06be00333b8f637f67a5cccd5fc9a571a922eda7..8b56ade4e3b9d8ec44cb91d4e8e8304b900df390 100644 (file)
@@ -6,14 +6,26 @@
 
 #include "../nick/nick.h"
 #include "../localuser/localuserchannel.h"
+#include "../control/control.h"
+#include "../lib/sstring.h"
+#include "../lib/irc_string.h"
+#include "../channel/channel.h"
+#include "../core/schedule.h"
+#include "../core/hooks.h"
+#include "../localuser/localuser.h"
+#include "../lib/irc_string.h"
+#include "../core/config.h"
+
+
 #include "huser.h"
 #include "hversions.h"
 
+
 /* configuration */
 
 /* These should always be equal */
-#define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_15
-#define HELPMOD_VERSION "2.15"
+#define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_17
+#define HELPMOD_VERSION "2.17"
 
 #define HELPMOD_USER_TIMEOUT 1200
 
@@ -29,7 +41,7 @@
 
 #define HELPMOD_BAN_DURATION (2 * HDEF_h)
 
-extern int HELPMOD_ACCOUNT_EXPIRATION[6];
+extern int HELPMOD_ACCOUNT_EXPIRATION[];
 
 extern nick *helpmodnick;
 
@@ -39,12 +51,12 @@ extern time_t helpmod_startup_time;
 
 void hcommit_modes(void);
 
-void helpmod_reply(huser *target, channel* returntype, const char *message, ... );
+void helpmod_reply(huser *target, channel* returntype, const char *message, ... ) __attribute__ ((format (printf, 3, 4)));
 
-void helpmod_message_channel_long(hchannel *hchan, const char *message, ...);
-void helpmod_message_channel(hchannel *hchan, const char *message, ...);
+void helpmod_message_channel_long(hchannel *hchan, const char *message, ...) __attribute__ ((format (printf, 2, 3)));
+void helpmod_message_channel(hchannel *hchan, const char *message, ...) __attribute__ ((format (printf, 2, 3)));
 
-void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...);
+void helpmod_kick(hchannel *hchan, huser *target, const char *reason, ...) __attribute__ ((format (printf, 3, 4)));
 
 void helpmod_invite(hchannel *, huser *);