summaryrefslogtreecommitdiff
path: root/poezio/tabs/muctab.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-13 21:21:07 +0100
committermathieui <mathieui@mathieui.net>2021-03-13 22:15:42 +0100
commit7d40878c0b14f8559ac52adeb1de44be957e116b (patch)
tree83cec7f5008013c307bd0c0b3b0cfe2635b7c6f9 /poezio/tabs/muctab.py
parent4c7b23ab6802d83be4e72e209fcaff0b4faaa572 (diff)
downloadpoezio-7d40878c0b14f8559ac52adeb1de44be957e116b.tar.gz
poezio-7d40878c0b14f8559ac52adeb1de44be957e116b.tar.bz2
poezio-7d40878c0b14f8559ac52adeb1de44be957e116b.tar.xz
poezio-7d40878c0b14f8559ac52adeb1de44be957e116b.zip
fix: do not crash on /recolor
Diffstat (limited to 'poezio/tabs/muctab.py')
-rw-r--r--poezio/tabs/muctab.py7
1 files 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: