Fixes the "Saw this admin message" button not working (#80908)

## About The Pull Request

Wrong fuckin name brother (also topic doesn't automake textnums into
nums)

## Why It's Good For The Game

Closes #80020

## Changelog
🆑
admin: Confirming that you have read an admin message now uh, works.
it's been 2 years bros
/🆑
This commit is contained in:
LemonInTheDark
2024-01-13 15:13:45 -08:00
committed by GitHub
parent 03700a1e78
commit 2ed5a9fca0
3 changed files with 71 additions and 44 deletions
-13
View File
@@ -361,19 +361,6 @@
var/target = href_list["showmessageckeylinkless"]
browse_messages(target_ckey = target, linkless = 1)
else if(href_list["messageread"])
if(!isnum(href_list["message_id"]))
return
var/rounded_message_id = round(href_list["message_id"], 1)
var/datum/db_query/query_message_read = SSdbcore.NewQuery(
"UPDATE [format_table_name("messages")] SET type = 'message sent' WHERE targetckey = :player_key AND id = :id",
list("id" = rounded_message_id, "player_key" = usr.ckey)
)
if(!query_message_read.warn_execute())
qdel(query_message_read)
return
qdel(query_message_read)
else if(href_list["messageedits"])
if(!check_rights(R_ADMIN))
return