forked from CFC-Servers/cfc_chat_transit
Hash color (#47)
This commit is contained in:
parent
4e4e8885ba
commit
88439d1ec0
@ -15,7 +15,9 @@ class AvatarService
|
||||
baseURL = "https://#{imageAddress}/avatars/#{realm}"
|
||||
|
||||
url = steamID64 and "#{baseURL}/#{steamID64}.png" or nil
|
||||
url and= "#{url}?processed=true" if @processedIDs[steamID64]
|
||||
|
||||
processed = @processedIDs[steamID64]
|
||||
url = url and processed and "#{url}?hash=#{processed}"
|
||||
|
||||
return url
|
||||
|
||||
@ -27,7 +29,7 @@ class AvatarService
|
||||
failed = @logger\error
|
||||
success = (code, body) ->
|
||||
@logger\debug "Avatar request succeeded with code: #{code} | Body: #{body}"
|
||||
@processedIDs[steamID64] = true
|
||||
@processedIDs[steamID64] = util.CRC( tostring( outlineColor ) )
|
||||
|
||||
HTTP
|
||||
:success
|
||||
|
Loading…
Reference in New Issue
Block a user