commands: Add the ability to print out ignored devices.

This commit is contained in:
Damir Jelić 2019-06-27 11:58:22 +02:00
parent 137102bb09
commit 6836365bc7

View file

@ -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