Let admins delete other clients' avatars

With b_client_avatar_delete_other, the client's context menu and the
menu on their avatar offer "Delete Avatar", as in TeamSpeak 3. The
server takes the deletion as ftdeletefile on /avatar_<unique id> (not
the stored file's name, which it refuses with "convert error") and
clears the client's avatar flag for everyone. Our own avatar's file is
now deleted the same way, which only such clients are allowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 16:27:41 +00:00
co-authored by Claude Opus 5.5
parent b1890cbf79
commit bda114d2c0
9 changed files with 80 additions and 1 deletions
@@ -118,6 +118,11 @@ public final class ServerTreePanel extends JPanel {
/** Edits a client's description — our own included. */
void changeClientDescription(ClientEntry client);
/** Whether we may delete other clients' avatars. */
boolean canDeleteOtherAvatars();
void deleteClientAvatar(ClientEntry client);
/** A new nickname for ourselves, typed into the tree row. */
void renameSelf(String nickname);