Warning verb update

Adds the ability to edit warnings, and to delete them (only if you're an admin, or if you are the person who issued it). Also adds a method for automatically making old warnings (3 months) expire, on the condition that they are already acknowledged.
This commit is contained in:
skull132
2015-09-26 00:06:26 +03:00
parent d4b6798c91
commit 32cda93d1e
2 changed files with 153 additions and 25 deletions
+10 -1
View File
@@ -2874,4 +2874,13 @@
var/playerckey = href_list["notessearchckey"]
show_notes_sql(playerckey, adminckey)
return
return
else if(href_list["dbwarningedit"])
var/warningEdit = href_list["dbwarningedit"]
var/warningId = text2num(href_list["dbwarningid"])
if(!warningEdit || !warningId)
return
warningsEdit(warningId, warningEdit)
return