]> 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 03a0e8451bd75e20aa7a3da4aa3cf3863b7fc2d1..8b56ade4e3b9d8ec44cb91d4e8e8304b900df390 100644 (file)
@@ -6,11 +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 */
 
-#define HELPMOD_VERSION "2.05"
+/* These should always be equal */
+#define HELPMOD_VERSION_INTERNAL HELPMOD_VERSION_2_17
+#define HELPMOD_VERSION "2.17"
 
 #define HELPMOD_USER_TIMEOUT 1200
 
@@ -26,7 +41,7 @@
 
 #define HELPMOD_BAN_DURATION (2 * HDEF_h)
 
-extern int HELPMOD_ACCOUNT_EXPIRATION[6];
+extern int HELPMOD_ACCOUNT_EXPIRATION[];
 
 extern nick *helpmodnick;
 
@@ -36,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 *);