From 951b089c975a9701e935935e3e26e6b94f807cbc Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 3 Feb 2020 15:16:57 +0100 Subject: [PATCH] Handle imports from other systems/instances with different HIDs --- PluralKit.Core/DataFiles.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/DataFiles.cs b/PluralKit.Core/DataFiles.cs index 0e3b21f3..0dda348b 100644 --- a/PluralKit.Core/DataFiles.cs +++ b/PluralKit.Core/DataFiles.cs @@ -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) {