X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/055f3f30384b661e5caa2eeaffd825cbab6eb39c..3b7fa78b1de8f9ee8718cba3da3b2db522b70620:/src/mod-snoop.c diff --git a/src/mod-snoop.c b/src/mod-snoop.c index 19b50c1..fa067a4 100644 --- a/src/mod-snoop.c +++ b/src/mod-snoop.c @@ -55,7 +55,11 @@ const char *snoop_module_deps[] = { NULL }; static int finalized; int snoop_finalize(void); -#define SNOOP(FORMAT, ARGS...) send_channel_message(snoop_cfg.channel, snoop_cfg.bot, "%s "FORMAT, timestamp , ## ARGS) +#if defined(GCC_VARMACROS) +# define SNOOP(FORMAT, ARGS...) send_channel_message(snoop_cfg.channel, snoop_cfg.bot, "%s "FORMAT, timestamp, ARGS) +#elif defined(C99_VARMACROS) +# define SNOOP(FORMAT, ...) send_channel_message(snoop_cfg.channel, snoop_cfg.bot, "%s "FORMAT, timestamp, __VA_ARGS__) +#endif #define UPDATE_TIMESTAMP() strftime(timestamp, sizeof(timestamp), "[%H:%M:%S]", localtime(&now)) static void