Player Notes SQL

Adds the SQL based notes system. Partially refractored to use the new DB procs and look neater.
This commit is contained in:
skull132
2016-01-19 14:55:01 +02:00
parent 9310018dbd
commit 5da7e3d699
5 changed files with 324 additions and 38 deletions
+16
View File
@@ -2662,6 +2662,22 @@
warningsEdit(warningId, warningEdit)
return
else if(href_list["dbnoteedit"])
var/noteedit = href_list["dbnoteedit"]
var/noteid = text2num(href_list["dbnoteid"])
if(!noteedit || !noteid)
return
notes_edit_sql(noteid, noteedit)
return
else if(href_list["notessearchckey"] || href_list["notessearchadmin"])
var/adminckey = href_list["notessearchadmin"]
var/playerckey = href_list["notessearchckey"]
show_notes_sql(playerckey, adminckey)
return
mob/living/proc/can_centcom_reply()
return 0