X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/9af95c3da2d2d6b0bc992d4373939864ec3e18b5..0d6366b6a61a69b26dc0cde44eb85e3293c6659d:/helpmod2/helpmod.h diff --git a/helpmod2/helpmod.h b/helpmod2/helpmod.h index 045198a8..8b56ade4 100644 --- a/helpmod2/helpmod.h +++ b/helpmod2/helpmod.h @@ -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_11 -#define HELPMOD_VERSION "2.11" +#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 *);