summaryrefslogtreecommitdiff
path: root/poezio/core
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2019-08-26 12:20:01 +0200
committermathieui <mathieui@mathieui.net>2019-08-26 12:20:20 +0200
commit4d3830b4604ff8682ac06f01c9437f03d21b2239 (patch)
treee4eb801b179d25188c70fd990d471c948cc475b8 /poezio/core
parentc8cd17f509805fee37cf282b8d75fe6a4713e2ab (diff)
downloadpoezio-4d3830b4604ff8682ac06f01c9437f03d21b2239.tar.gz
poezio-4d3830b4604ff8682ac06f01c9437f03d21b2239.tar.bz2
poezio-4d3830b4604ff8682ac06f01c9437f03d21b2239.tar.xz
poezio-4d3830b4604ff8682ac06f01c9437f03d21b2239.zip
Do not run a /part command when disconnecting from poezio
Use the underlying function instead
Diffstat (limited to 'poezio/core')
-rw-r--r--poezio/core/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py
index c4ed3ac9..b8855efe 100644
--- a/poezio/core/core.py
+++ b/poezio/core/core.py
@@ -840,7 +840,7 @@ class Core:
self.xmpp.reconnect(wait=0.0, reason=msg)
else:
for tab in self.get_tabs(tabs.MucTab):
- tab.command_part(msg)
+ tab.leave_room(msg)
self.xmpp.disconnect(reason=msg)
def send_message(self, msg: str) -> bool: