fix: do not crash on /recolor
This commit is contained in:
parent
4c7b23ab68
commit
7d40878c0b
1 changed files with 3 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue