Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit b1b3677

Browse files
authored
fix (#22833)
1 parent cf2c8f7 commit b1b3677

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

code/__DEFINES/misc.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ GLOBAL_LIST_INIT(donor_pdas, list(PDA_COLOR_NORMAL, PDA_COLOR_TRANSPARENT, PDA_C
226226
#define DEADCHAT_DEATHRATTLE "deathrattle"
227227
#define DEADCHAT_REGULAR "regular-deadchat"
228228
#define DEADCHAT_ANNOUNCEMENT "announcement"
229+
#define DEADCHAT_PDA "pdamessage"
229230

230231
// Bluespace shelter deploy checks
231232
#define SHELTER_DEPLOY_ALLOWED "allowed"

code/__HELPERS/mobs.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ GLOBAL_LIST_EMPTY(species_list)
449449
if(DEADCHAT_ARRIVALRATTLE)
450450
if(prefs.toggles & DISABLE_ARRIVALRATTLE)
451451
continue
452+
if(DEADCHAT_PDA)
453+
if(prefs.chat_toggles & CHAT_GHOSTPDA)
454+
continue
452455

453456
if(isobserver(M))
454457
var/rendered_message = message

code/modules/modular_computers/file_system/programs/ntpda_msg.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ GLOBAL_LIST_EMPTY(NTPDAMessages)
124124
return FALSE
125125

126126
// Show ghosts (and admins)
127-
deadchat_broadcast(" sent an <b>NTPDA Message</b> ([username] --> [recipient.username]): [span_message(message)]", user, user, speaker_key = user.ckey)
127+
deadchat_broadcast(" sent an <b>NTPDA Message</b> ([username] --> [recipient.username]): [span_message(message)]", user, user, speaker_key = user.ckey, message_type = DEADCHAT_PDA)
128128
computer.visible_message(span_notice("Message sent!"), null, null, 1)
129129
message_history += list(list(username, message, REF(src), signal))
130130
return TRUE
@@ -182,7 +182,7 @@ GLOBAL_LIST_EMPTY(NTPDAMessages)
182182
return FALSE
183183

184184
// Show ghosts (and admins)
185-
deadchat_broadcast(" sent an <b>NTPDA Message</b> ([username] --> <b>Everyone</b>): [span_message(message)]", user, user, speaker_key = user.ckey)
185+
deadchat_broadcast(" sent an <b>NTPDA Message</b> ([username] --> <b>Everyone</b>): [span_message(message)]", user, user, speaker_key = user.ckey, message_type = DEADCHAT_PDA)
186186
computer.visible_message(span_notice("Message sent!"), null, null, 1)
187187
message_history += list(list(username, message, REF(src), signal))
188188
return TRUE

0 commit comments

Comments
 (0)