Skip to content

Commit

Permalink
Fix empty lines in adminwho with stealthmins. (#34122)
Browse files Browse the repository at this point in the history
Don't print newline if admin is hidden.
  • Loading branch information
c4llv07e authored Jan 8, 2025
1 parent c1aaf64 commit 904d75c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Content.Server/Administration/Commands/AdminWhoCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
var first = true;
foreach (var admin in adminMgr.ActiveAdmins)
{
if (!first)
sb.Append('\n');
first = false;

var adminData = adminMgr.GetAdminData(admin)!;
DebugTools.AssertNotNull(adminData);

if (adminData.Stealth && !seeStealth)
continue;

if (!first)
sb.Append('\n');
first = false;

sb.Append(admin.Name);
if (adminData.Title is { } title)
sb.Append($": [{title}]");
Expand Down

0 comments on commit 904d75c

Please sign in to comment.