Thread Tools Display Modes
Prev Previous Post   Next Post Next
02/09/20, 08:50 AM   #1
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
[open] IsIgnored(charOrDisplayName) doesn't properly pickup Character Names

Code:
IsIgnored(string charOrDisplayName) 
     Returns: boolean isIgnored
Will only return true when a displayName is entered, not a character name.

This leads to a few issues with some other functions in the base UI, a prime example being the function used when the player sends a guild invite by name to a player through the Guild Roster.

The function used is ZO_TryGuildInvite(guildId, displayName) in esoui/ingame/guild/zo_guildutils.common, which has the following line starting at 148 on the current PTS build:
Code:
        if IsIgnored(displayName) then
            ZO_Alert(UI_ALERT_CATEGORY_ALERT, nil, SI_GROUP_ALERT_INVITE_PLAYER_BLOCKED)
            return
        end
This returns an error that "you have blocked that player" you are ignoring IF you enter their display name, however if you enter their character name it bypasses this restriction.

As a sidenote, AddIgnore(charOrDisplayName) DOES properly parse a DisplayName or CharacterName. RemoveIgnore(displayName) does not. Perhaps the functionality of removing an ignored player by character name could be added here as well.

Last edited by ArtOfShred : 02/09/20 at 08:54 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Bug Reports » [open] IsIgnored(charOrDisplayName) doesn't properly pickup Character Names


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off