commands: Add the ability to print out ignored devices.
This commit is contained in:
parent
137102bb09
commit
6836365bc7
1 changed files with 10 additions and 1 deletions
|
@ -124,7 +124,8 @@ class WeechatCommandParser(object):
|
|||
"blacklisted",
|
||||
"private",
|
||||
"unverified",
|
||||
"verified"
|
||||
"verified",
|
||||
"ignored"
|
||||
])
|
||||
info_parser.add_argument("filter", nargs="?")
|
||||
|
||||
|
@ -631,6 +632,14 @@ def olm_info_command(server, args):
|
|||
olm.is_device_blacklisted
|
||||
)
|
||||
|
||||
elif args.category == "ignored":
|
||||
print_devices(
|
||||
olm.device_store,
|
||||
args.filter,
|
||||
"Ignored",
|
||||
olm.is_device_ignored
|
||||
)
|
||||
|
||||
|
||||
def olm_action_command(server, args, category, error_category, prefix, action):
|
||||
device_store = server.client.olm.device_store
|
||||
|
|
Loading…
Reference in a new issue