fix runtime flood on chat messages

This commit is contained in:
Kashargul
2024-10-03 22:44:24 +02:00
committed by GitHub
parent 0dccf5f954
commit bafb099bc0
+1 -1
View File
@@ -126,7 +126,7 @@ var/list/runechat_image_cache = list()
// Always force it back to a pref if they have one
if(ismob(target))
var/mob/M = target
if(M?.client?.prefs?.runechat_color != COLOR_BLACK)
if(M?.client?.prefs && M.client.prefs.runechat_color != COLOR_BLACK)
target.chat_color = M.client.prefs.runechat_color
target.chat_color_darkened = M.client.prefs.runechat_color