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
tg = tmp;
break;
}
+ case 'h':
+ {
+ strcat(targets, " ");
+ if ((tmp = strchr(tg, ' ')))
+ *tmp++ = 0;
+ if((un = GetUserN(tg)))
+ strcat(targets, un->nick);
+ else
+ strcat(targets, tg);
+ if(tmp)
+ tg = tmp;
+ break;
+ }
case 'v':
{
strcat(targets, " ");