From 8cdc9ebcdbccb19f11365740b5c5d9153e3815fe Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 28 Oct 2021 01:05:59 +0100 Subject: [PATCH] [MIRROR] [s] Hotfix notes not belonging to players being shown to players [MDB IGNORE] (#9060) * [s] Hotfix notes not belonging to players being shown to players * [s] Hotfix notes not belonging to players being shown to players (#62352) See title. Other players will no longer see other player's notes when they connect to the server. Memos will still be shown to admins. Things that I have tested in the making of this PR: Notes of a player not being shown to other players definitely work Notes of a player being shown to a player definitely work. Memos are still shown to admins. Closes #62348 Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> --- code/modules/admin/sql_message_system.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/sql_message_system.dm b/code/modules/admin/sql_message_system.dm index d63648f6a65..fbae4c52887 100644 --- a/code/modules/admin/sql_message_system.dm +++ b/code/modules/admin/sql_message_system.dm @@ -654,7 +654,7 @@ WHERE type = :type AND deleted = 0 AND (expire_timestamp > NOW() OR expire_timestamp IS NULL) - AND ((type != 'message' AND type != 'watchlist entry') OR targetckey = :targetckey) + AND (type = 'memo' OR targetckey = :targetckey) [after_timestamp? "AND timestamp > :after_timestamp": ""] [!show_secret? "AND secret = 0": ""] "}, parameters)