From 7d40878c0b14f8559ac52adeb1de44be957e116b Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 13 Mar 2021 21:21:07 +0100 Subject: fix: do not crash on /recolor --- poezio/tabs/muctab.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 34cec0ca..38871fc5 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1407,14 +1407,13 @@ class MucTab(ChatTab): self.leave_room(msg) self.join() - @command_args_parser.quoted(0, 1, ['']) - def command_recolor(self, args: List[str]) -> None: + @command_args_parser.ignored + def command_recolor(self) -> None: """ /recolor [random] Re-assigns color to the participants of the room """ - random_colors = args[0] == 'random' - self.recolor(random_colors) + self.recolor() @command_args_parser.quoted(2, 2, ['']) def command_color(self, args: List[str]) -> None: -- cgit v1.2.3