mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-07 10:34:46 -04:00
Forgotten the locale code for my spammer target.
This commit is contained in:
parent
753acb1299
commit
fc4354eb3e
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ module.exports = class Handler
|
|||
return false unless delta.o.length is 1
|
||||
index = delta.deltaPath.indexOf('i18n')
|
||||
return false if index is -1
|
||||
return false if delta.deltaPath[index+1] in ['en-US', 'en-UK', 'en-AU'] # English speakers are most likely just spamming, so always treat those as patches, not saves.
|
||||
return false if delta.deltaPath[index+1] in ['en', 'en-US', 'en-GB', 'en-AU'] # English speakers are most likely just spamming, so always treat those as patches, not saves.
|
||||
return true
|
||||
|
||||
formatEntity: (req, document) -> document?.toObject()
|
||||
|
|
Loading…
Add table
Reference in a new issue