From 115f94bfc23c481eab50298895f76bd494179cd8 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 21 May 2011 04:57:27 -0400 Subject: Made Anope able to process normally when disconnected from the uplink and not sleep(), enable usage of non-blocking connect() and default all sockets to non blocking mode. Some cleanup to m_ssl and some cleanup to main.cpp. --- modules/core/db_mysql.cpp | 2 +- modules/core/os_restart.cpp | 2 +- modules/core/os_shutdown.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/core') diff --git a/modules/core/db_mysql.cpp b/modules/core/db_mysql.cpp index 193d467da..6a5ba8900 100644 --- a/modules/core/db_mysql.cpp +++ b/modules/core/db_mysql.cpp @@ -136,7 +136,7 @@ class DBMySQL : public Module if (operserv) this->AddCommand(operserv->Bot(), &commandsqlsync); - if (uplink_server) + if (CurrentUplink) OnServerConnect(); } diff --git a/modules/core/os_restart.cpp b/modules/core/os_restart.cpp index bda2d861c..196d0a3ab 100644 --- a/modules/core/os_restart.cpp +++ b/modules/core/os_restart.cpp @@ -26,7 +26,7 @@ class CommandOSRestart : public Command { User *u = source.u; quitmsg = "RESTART command received from " + u->nick; - do_restart_services(); + quitting = save_data = restarting = true; return MOD_CONT; } diff --git a/modules/core/os_shutdown.cpp b/modules/core/os_shutdown.cpp index c67d7acb2..35f76f0c9 100644 --- a/modules/core/os_shutdown.cpp +++ b/modules/core/os_shutdown.cpp @@ -26,7 +26,7 @@ class CommandOSShutdown : public Command { User *u = source.u; quitmsg = "SHUTDOWN command received from " + u->nick; - shutting_down = true; + quitting = save_data = true; return MOD_CONT; } -- cgit