Refactors dbcon into a subsystem

This commit is contained in:
CitadelStationBot
2017-04-17 09:46:09 -05:00
parent 21827263f5
commit 278cbbaf35
25 changed files with 372 additions and 149 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
GLOB.timezoneOffset = text2num(time2text(0,"hh")) * 36000
if(config.sql_enabled)
if(!GLOB.dbcon.Connect())
if(!SSdbcore.Connect())
log_world("Your server failed to establish a connection with the database.")
else
log_world("Database connection established.")