Add a Permissions menu with privilege keys: list, create, remove and use
Permissions > Use Privilege Key redeems a key (tokenuse). Permissions > Privilege Keys opens a per-tab window listing the server's keys with their group, channel, creation date and description; keys can be created, removed, copied and reloaded. The create dialog takes a server group, or a channel group in a chosen channel, plus a description, offers only groups we have the power to add members to, and shows each new key for copying. tokenlist and tokenadd answer with notifytokenlist / notifytokenadd ahead of the command's completion, so core collects them the way it does the ban list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -283,6 +283,21 @@ public final class MainFrame extends JFrame implements ServerTabPane.Listener {
|
||||
if (selected != null) selected.showBanList(banReasonPresets());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canListPrivilegeKeys() {
|
||||
return selected != null && selected.session().canListPrivilegeKeys();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onShowPrivilegeKeys() {
|
||||
if (selected != null) selected.showPrivilegeKeys();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUsePrivilegeKey() {
|
||||
if (selected != null) selected.usePrivilegeKey();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onShowSettings() {
|
||||
showSettings();
|
||||
|
||||
Reference in New Issue
Block a user