From 360b1350b63bbde821586a4f01417f95803f9e3d Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 20 Jul 2017 23:50:37 +0200 Subject: Fix /server_cycle weirdness exit the rooms properly, call functions instead of full-blown commands, do not randomly focus stabs, etc --- poezio/core/commands.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'poezio/core/commands.py') diff --git a/poezio/core/commands.py b/poezio/core/commands.py index c4f3bf87..65c8778f 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -665,16 +665,8 @@ class CommandCore: return self.core.information("No server specified", "Error") for tab in self.core.get_tabs(tabs.MucTab): if tab.name.endswith(domain): - if tab.joined: - muc.leave_groupchat(tab.core.xmpp, - tab.name, - tab.own_nick, - message) - tab.joined = False - if tab.name == domain: - self.join('"@%s/%s"' %(tab.name, tab.own_nick)) - else: - self.join('"%s/%s"' %(tab.name, tab.own_nick)) + tab.leave_room(message) + tab.join() @command_args_parser.quoted(1) def last_activity(self, args): -- cgit v1.2.3