Handle imports from other systems/instances with different HIDs

This commit is contained in:
Ske 2020-02-03 15:16:57 +01:00
parent 5334975ab7
commit 951b089c97

View File

@ -109,7 +109,7 @@ namespace PluralKit.Bot
{
PKMember match = null;
if (membersByHid.TryGetValue(d.Id, out var matchByHid)) match = matchByHid; // Try to look up the member with the given ID
else if (membersByName.TryGetValue(d.Id, out var matchByName)) match = matchByName; // Try with the name instead
else if (membersByName.TryGetValue(d.Name, out var matchByName)) match = matchByName; // Try with the name instead
if (match != null)
{