From 89f140c760137720758671f6c1b76fa16bb7a85f Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 18 Feb 2021 20:20:12 +0100 Subject: [PATCH] [MIRROR] stops people using message all when their pda doesn't allow it (#3489) * stop people using message all when their pda doesn't allow it (#57005) Fixes not checking for Send All permissions in Topic. * stops people using message all when their pda doesn't allow it Co-authored-by: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> --- code/game/objects/items/devices/PDA/PDA.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index d3e8b202c38..b55b3492010 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -617,7 +617,8 @@ GLOBAL_LIST_EMPTY(PDAs) sort_by_job = !sort_by_job if("MessageAll") - send_to_all(U) + if(cartridge?.spam_enabled) + send_to_all(U) if("cart") if(cartridge)