Fix null client field value in examine (#18808)

* fix(examine): handle the client's null value

* chore: add changelog

* Update code/modules/mob/living/carbon/human/examine.dm

Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
Signed-off-by: Werner <1331699+Arrow768@users.noreply.github.com>

* fix: take out the extra tabs

Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
Signed-off-by: SidVeld <sidveld@gmail.com>

---------

Signed-off-by: Werner <1331699+Arrow768@users.noreply.github.com>
Signed-off-by: SidVeld <sidveld@gmail.com>
Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>
Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
This commit is contained in:
SidVeld
2024-04-01 14:41:50 +00:00
committed by GitHub
co-authored by Fluffy Werner
parent 77dfb6ba63
commit 4e99f9f34f
2 changed files with 7 additions and 1 deletions
@@ -390,7 +390,7 @@
if(print_flavor_text()) msg += "[print_flavor_text()]\n"
if (GLOB.config.allow_Metadata && client.prefs.metadata)
if(GLOB.config.allow_Metadata && client?.prefs.metadata)
msg += "<span class='deadsay'>OOC Notes:</span> <a href='?src=\ref[src];metadata=1'>\[View\]</a>\n"
msg += "</span>"