From 68796d4e6ad6737a6bf2d02898e4056f665f6982 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Thu, 12 May 2016 12:29:28 -0400 Subject: [PATCH] Don't nag me, game. --- code/world.dm | 2 ++ config/example/config.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/world.dm b/code/world.dm index b81c0f7c3a..d82b636e87 100644 --- a/code/world.dm +++ b/code/world.dm @@ -558,6 +558,7 @@ var/failed_db_connections = 0 var/failed_old_db_connections = 0 /hook/startup/proc/connectDB() + if(!config.sql_enabled) return 1 if(!setup_database_connection()) world.log << "Your server failed to establish a connection with the feedback database." else @@ -600,6 +601,7 @@ proc/establish_db_connection() /hook/startup/proc/connectOldDB() + if(!config.sql_enabled) return 1 if(!setup_old_database_connection()) world.log << "Your server failed to establish a connection with the SQL database." else diff --git a/config/example/config.txt b/config/example/config.txt index b38bfd7354..c1ce782235 100644 --- a/config/example/config.txt +++ b/config/example/config.txt @@ -68,7 +68,7 @@ LOG_PDA ##LOG_ADMINWARN ## Also duplicates a bunch of other messages. ## sql switching -# SQL_ENABLED +SQL_ENABLED 1 ## disconnect players who did nothing during the set amount of minutes # KICK_INACTIVE 10