1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 01:53:13 +02:00
This commit is contained in:
Adam
2011-11-08 17:29:16 -05:00
parent 97b9055f92
commit b5ff856f47
85 changed files with 1277 additions and 1278 deletions
+7 -9
View File
@@ -27,10 +27,9 @@
#include "timers.h"
#include "modules.h"
// getrlimit.
#ifndef _WIN32
# include <sys/time.h>
# include <sys/resource.h>
#ifdef _WIN32
# include <process.h>
# define execve _execve
#endif
/******** Global variables! ********/
@@ -47,11 +46,6 @@ bool noexpire = false; /* -noexpire */
bool protocoldebug = false; /* -protocoldebug */
Anope::string binary_dir; /* Used to store base path for Anope */
#ifdef _WIN32
# include <process.h>
# define execve _execve
#endif
/* Set to 1 if we are to quit */
bool quitting = false;
int return_code = 0;
@@ -316,6 +310,10 @@ int main(int ac, char **av, char **envp)
/* Clean out the module runtime directory prior to running, just in case files were left behind during a previous run */
ModuleManager::CleanupRuntimeDirectory();
#ifdef _WIN32
OnStartup();
#endif
try
{
/* General initialization first */