From 9c3fb6cfd76bc6c3e8028e13110a882dc09cb513 Mon Sep 17 00:00:00 2001 From: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Date: Tue, 26 Oct 2021 18:53:01 +0100 Subject: [PATCH] [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 --- 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 6f6b9cf9629..114772dda88 100644 --- a/code/modules/admin/sql_message_system.dm +++ b/code/modules/admin/sql_message_system.dm @@ -651,7 +651,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)