Skip to content

Commit

Permalink
remove identity check
Browse files Browse the repository at this point in the history
  • Loading branch information
lzk228 authored Aug 29, 2024
1 parent d2f933d commit a0a5e3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Content.Server/Corvax/TTS/TTSExamineSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ public override void Initialize()

private void OnGetExamineVerbs(EntityUid uid, TTSComponent component, GetVerbsEvent<ExamineVerb> args)
{
// Don't show verb if no TTS enabled OR if user's name is hidden
if (!_configManager.GetCVar(CCCVars.TTSEnabled) ||
Identity.Name(args.Target, EntityManager) != MetaData(args.Target).EntityName)
// Don't show verb if no TTS enabled
if (!_configManager.GetCVar(CCCVars.TTSEnabled))
return;

string? voiceId = string.Empty;
Expand Down

0 comments on commit a0a5e3b

Please sign in to comment.