mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user