summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-14 16:13:53 +0200
committermathieui <mathieui@mathieui.net>2017-10-14 16:13:53 +0200
commite7d8d2aaf50ab9cea23732129adf2c3ed1f40f70 (patch)
tree0bcbe4e5c15312f254acfe2d8f54178be5c3579b /poezio/tabs
parent426dd35b9493e774a3d0683a72c3a500ed94e6a9 (diff)
downloadpoezio-e7d8d2aaf50ab9cea23732129adf2c3ed1f40f70.tar.gz
poezio-e7d8d2aaf50ab9cea23732129adf2c3ed1f40f70.tar.bz2
poezio-e7d8d2aaf50ab9cea23732129adf2c3ed1f40f70.tar.xz
poezio-e7d8d2aaf50ab9cea23732129adf2c3ed1f40f70.zip
Do not call poezio commands when we can call methods
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/muctab.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 3515d58d..81e79603 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -1304,12 +1304,12 @@ class MucTab(ChatTab):
"""
/close [msg]
"""
- self.command_part(msg)
+ self.leave_room(msg)
self.core.close_tab(self)
def on_close(self):
super().on_close()
- self.command_part('')
+ self.leave_room('')
@command_args_parser.quoted(1, 1)
def command_query(self, args):