* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* ---------------------------------------------------
*/
-/* w00t was here. ;p */
-
/* $Install: src/inspircd $(BINPATH) */
#include "inspircd.h"
#include <signal.h>
#define RUSAGE_SELF 0
#endif
- /* CRT memory debugging */
- #ifdef DEBUG
- #define _CRTDBG_MAP_ALLOC
- #include <stdlib.h>
- #include <crtdbg.h>
- #endif
-
#include <pwd.h> // setuid
#include <grp.h> // setgid
#endif
"CreateEvent failed" /* 19 */
};
-template<typename T> void DeleteZero(T* n)
+template<typename T> static void DeleteZero(T* n)
{
if (n != NULL)
{
/* Windows can (and defaults to) hide file extensions, so let's play a bit nice for windows users. */
std::string txtconf = this->ConfigFileName;
txtconf.append(".txt");
-
+
if (ServerConfig::FileExists(txtconf.c_str()))
{
strlcat(this->ConfigFileName, ".txt", MAXBUF);