mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 08:56:49 +01:00
@@ -28,7 +28,7 @@
|
||||
var/DBQuery/insert_query = GLOB.dbcon.NewQuery("INSERT INTO ss13_notes (id, adddate, game_id, ckey, ip, computerid, a_ckey, content) VALUES (null, Now(), :game_id:, :ckey:, :address:, :computer_id:, :a_ckey:, :note:)")
|
||||
insert_query.Execute(query_details)
|
||||
|
||||
message_admins("<span class='notice'>[key_name_admin(user)] has edited [player_ckey]'s notes.</span>")
|
||||
message_admins(SPAN_NOTICE("[key_name_admin(user)] has edited [player_ckey]'s notes."))
|
||||
log_admin("[key_name(user)] has edited [player_ckey]'s notes.",admin_key=key_name(user),ckey=player_ckey)
|
||||
|
||||
/proc/notes_edit_sql(var/note_id, var/note_edit)
|
||||
@@ -51,12 +51,12 @@
|
||||
count++
|
||||
|
||||
if (count == 0)
|
||||
to_chat(usr, "<span class='warning'>Database update failed due to a note id not being present in the database.</span>")
|
||||
to_chat(usr, SPAN_WARNING("Database update failed due to a note id not being present in the database."))
|
||||
log_world("ERROR: Database update failed due to a note id not being present in the database.")
|
||||
return
|
||||
|
||||
if (count > 1)
|
||||
to_chat(usr, "<span class='warning'>Database update failed due to multiple notes having the same ID. Contact the database admin.</span>")
|
||||
to_chat(usr, SPAN_WARNING("Database update failed due to multiple notes having the same ID. Contact the database admin."))
|
||||
log_world("ERROR: Database update failed due to multiple notes having the same ID. Contact the database admin.")
|
||||
return
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
var/DBQuery/deletequery = GLOB.dbcon.NewQuery("UPDATE ss13_notes SET visible = 0 WHERE id = :note_id:")
|
||||
deletequery.Execute(list("note_id" = note_id))
|
||||
|
||||
message_admins("<span class='notice'>[key_name_admin(usr)] deleted one of [ckey]'s notes.</span>")
|
||||
message_admins(SPAN_NOTICE("[key_name_admin(usr)] deleted one of [ckey]'s notes."))
|
||||
log_admin("[key_name(usr)] deleted one of [ckey]'s notes.",admin_key=key_name(usr),ckey=ckey)
|
||||
else
|
||||
to_chat(usr, "Cancelled")
|
||||
|
||||
Reference in New Issue
Block a user