Skip to content

Commit

Permalink
Fix: Non-donor colored OOC ckey
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Jan 20, 2025
1 parent 2cd71fd commit f19d8fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modular_bandastation/chat_badges/code/badges.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ GLOBAL_LIST(badge_icons_cache)
var/list/parts = list()
if(length(badge_parts))
parts += badge_parts
parts += "<font color='[prefs.read_preference(/datum/preference/color/ooc_color) || GLOB.normal_ooc_colour]'>[key]</font>"

if(donator_level && prefs.read_preference(/datum/preference/toggle/donor_public) || prefs.unlock_content && (prefs.toggles & MEMBER_PUBLIC))
parts += "<font color='[prefs.read_preference(/datum/preference/color/ooc_color) || GLOB.normal_ooc_colour]'>[key]</font>"
else
parts += "[key]"

return jointext(parts, "<div style='display: inline-block; width: 3px;'></div>")

/client/proc/get_donator_badge()
Expand Down

0 comments on commit f19d8fb

Please sign in to comment.