fix: do not crash on /recolor

This commit is contained in:
mathieui 2021-03-13 21:21:07 +01:00
parent 4c7b23ab68
commit 7d40878c0b

View file

@ -1407,14 +1407,13 @@ class MucTab(ChatTab):
self.leave_room(msg) self.leave_room(msg)
self.join() self.join()
@command_args_parser.quoted(0, 1, ['']) @command_args_parser.ignored
def command_recolor(self, args: List[str]) -> None: def command_recolor(self) -> None:
""" """
/recolor [random] /recolor [random]
Re-assigns color to the participants of the room Re-assigns color to the participants of the room
""" """
random_colors = args[0] == 'random' self.recolor()
self.recolor(random_colors)
@command_args_parser.quoted(2, 2, ['']) @command_args_parser.quoted(2, 2, [''])
def command_color(self, args: List[str]) -> None: def command_color(self, args: List[str]) -> None: