Verified Commit 7f1e9b08 authored by Maxime Buquet's avatar Maxime Buquet

plugin_e2ee: handle empty args in /foo_state commands

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 00a91774
Pipeline #4074 failed with stages
in 2 minutes and 47 seconds
......@@ -291,6 +291,12 @@ class E2EEPlugin(BasePlugin):
@command_args_parser.quoted(2)
def __command_set_state_global(self, args, state='') -> None:
if not args:
self.api.information(
'No fingerprint provided to the command..',
'Error',
)
return
jid, fpr = args
if state not in self._all_trust_states:
self.api.information(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment