Skip to content

Commit

Permalink
Merge pull request #629 from dwasint/patreon-fix
Browse files Browse the repository at this point in the history
Update loadout_middleware.dm
  • Loading branch information
dwasint authored Nov 28, 2023
2 parents 177ccc7 + 7b79f6e commit beafea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monkestation/code/modules/loadouts/loadout_middleware.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
return null

//Here we will perform basic checks to ensure there are no exploits happening
if(interacted_item.donator_only && (!preferences.parent.patreon?.is_donator() || !preferences.parent.twitch?.is_donator()) && !is_admin(preferences.parent))
if(interacted_item.donator_only && (!preferences.parent.patreon?.is_donator() && !preferences.parent.twitch?.is_donator()) && !is_admin(preferences.parent))
message_admins("LOADOUT SYSTEM: Possible exploit detected, non-donator [preferences.parent.ckey] tried loading [interacted_item.item_path], but this is donator only.")
return null

Expand Down

0 comments on commit beafea8

Please sign in to comment.