Update HttpService.cs
This commit is contained in:
parent
deac2c4387
commit
ec11f502e6
1 changed files with 7 additions and 0 deletions
|
|
@ -160,6 +160,13 @@ namespace SecondBotEvents.Services
|
||||||
|
|
||||||
protected void ProcessAvatar(string avatar)
|
protected void ProcessAvatar(string avatar)
|
||||||
{
|
{
|
||||||
|
if (UUID.TryParse(avatar, out avataruuid) == true)
|
||||||
|
{
|
||||||
|
// sent a UUID not a name, thats fine
|
||||||
|
// try and load the name anyway
|
||||||
|
master.DataStoreService.GetAvatarName(avataruuid);
|
||||||
|
return;
|
||||||
|
}
|
||||||
avataruuid = UUID.Zero;
|
avataruuid = UUID.Zero;
|
||||||
string UUIDfetch = master.DataStoreService.GetAvatarUUID(avatar);
|
string UUIDfetch = master.DataStoreService.GetAvatarUUID(avatar);
|
||||||
if (UUIDfetch != "lookup")
|
if (UUIDfetch != "lookup")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue