fix: we shouldn't do xivapi requests for characters when the name is empty

This commit is contained in:
goat 2020-04-27 15:17:13 +02:00
parent d4244566e8
commit bd2e5cda2a

View file

@ -216,7 +216,7 @@ namespace Dalamud.DiscordBot {
var avatarUrl = string.Empty;
var lodestoneId = string.Empty;
if (!this.config.DisableEmbeds) {
if (!this.config.DisableEmbeds && !string.IsNullOrEmpty(senderName)) {
var searchResult = await GetCharacterInfo(senderName, senderWorld);
lodestoneId = searchResult.LodestoneId;