SQL Saving - Rewrite + Implenetation (#350)

Rewrite's Mahzel's SQL character and preference saving.
Introduces easy config switching between the new and old system, with no troubles at all.

Also introduces better logging for DBQuery/proc/parseArguments(), should something go wrong. And classes SQL query errors as full on error snow, as opposed to debug data.
This commit is contained in:
skull132
2016-05-30 23:39:07 +03:00
parent 6881213b75
commit 7dacaa28dd
21 changed files with 1333 additions and 1339 deletions
+2 -1
View File
@@ -538,7 +538,7 @@ var/list/admin_verbs_cciaa = list(
prefs.ooccolor = input(src, "Please select your OOC colour.", "OOC colour") as color
else if(response == "Reset to default")
prefs.ooccolor = initial(prefs.ooccolor)
prefs.save_preferences()
prefs.handle_preferences_save(src)
feedback_add_details("admin_verb","OC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return
@@ -907,6 +907,7 @@ var/list/admin_verbs_cciaa = list(
usr << "You now will get attack log messages"
else
usr << "You now won't get attack log messages"
prefs.handle_preferences_save(src)
/client/proc/toggleghostwriters()