diff options
author | mathieui <mathieui@mathieui.net> | 2017-07-20 23:50:37 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-07-20 23:50:37 +0200 |
commit | 360b1350b63bbde821586a4f01417f95803f9e3d (patch) | |
tree | 4ca68c49d994f26f73b65087241f1c67cd152fe0 /poezio/core | |
parent | 6fb3151202743d951e4ea0fb98381f81e92b7e6c (diff) | |
download | poezio-360b1350b63bbde821586a4f01417f95803f9e3d.tar.gz poezio-360b1350b63bbde821586a4f01417f95803f9e3d.tar.bz2 poezio-360b1350b63bbde821586a4f01417f95803f9e3d.tar.xz poezio-360b1350b63bbde821586a4f01417f95803f9e3d.zip |
Fix /server_cycle weirdness
exit the rooms properly, call functions instead of full-blown commands,
do not randomly focus stabs, etc
Diffstat (limited to 'poezio/core')
-rw-r--r-- | poezio/core/commands.py | 12 |
1 files changed, 2 insertions, 10 deletions
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): |