mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 00:19:18 +01:00
fix: we shouldn't do xivapi requests for characters when the name is empty
This commit is contained in:
parent
d4244566e8
commit
bd2e5cda2a
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ namespace Dalamud.DiscordBot {
|
||||||
var avatarUrl = string.Empty;
|
var avatarUrl = string.Empty;
|
||||||
var lodestoneId = string.Empty;
|
var lodestoneId = string.Empty;
|
||||||
|
|
||||||
if (!this.config.DisableEmbeds) {
|
if (!this.config.DisableEmbeds && !string.IsNullOrEmpty(senderName)) {
|
||||||
var searchResult = await GetCharacterInfo(senderName, senderWorld);
|
var searchResult = await GetCharacterInfo(senderName, senderWorld);
|
||||||
|
|
||||||
lodestoneId = searchResult.LodestoneId;
|
lodestoneId = searchResult.LodestoneId;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue