Skip to content

Commit

Permalink
Allow vsh_ maps to be uploaded, now it is an semi-official gamemode
Browse files Browse the repository at this point in the history
  • Loading branch information
Arie committed Jul 21, 2023
1 parent 6318d00 commit 76616e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/map_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def self.blacklisted_type?(filename)
return false unless filename.match(/(^.*\.bsp)/)

target_filename = filename.match(/(^.*\.bsp)/) && filename.match(/(^.*\.bsp)/)[1]
target_filename && target_filename =~ /^(trade_.*|vsh_.*|mvm_.*|jail_.*|achievement_.*)/i
target_filename && target_filename =~ /^(trade_.*|mvm_.*|jail_.*|achievement_.*)/i
end

def bzip2_uploaded_maps
Expand Down

0 comments on commit 76616e2

Please sign in to comment.