/*
- * charybdis: an advanced Internet Relay Chat Daemon(ircd).
+ * Solanum: a slightly advanced ircd
*
* Copyright (C) 2003 Lee H <lee@leeh.co.uk>
* Copyright (C) 2003-2005 ircd-ratbox development team
- * Copyright (C) 2008 William Pitcock <nenolod@sacredspiral.co.uk>
+ * Copyright (C) 2008 Ariadne Conill <ariadne@dereferenced.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
{
FILE *logfile = *log_table[dest].logfile;
char buf[BUFSIZE];
- char buf2[BUFSIZE];
+ char buf2[MAX_DATE_STRING + 1 + BUFSIZE + 1];
va_list args;
if(logfile == NULL)
fprintf(stderr, "%8s: %s\n", domain, buf);
}
+void
+idebug(const char *format, ...)
+{
+#ifndef NDEBUG
+ char buf[BUFSIZE];
+ va_list args;
+
+ va_start(args, format);
+ vsnprintf(buf, sizeof(buf), format, args);
+ va_end(args);
+
+ _iprint("debug", buf);
+
+ ilog(L_MAIN, "%s", buf);
+#endif
+}
+
void
inotice(const char *format, ...)
{