Fix #2470 (server_cycle joining the wrong room with domain-only muc)

This commit is contained in:
mathieui 2014-02-20 08:39:40 +01:00
parent fd0735fe2d
commit a9f0607123

View file

@ -2284,7 +2284,10 @@ class Core(object):
if tab.joined: if tab.joined:
muc.leave_groupchat(tab.core.xmpp, tab.get_name(), tab.own_nick, message) muc.leave_groupchat(tab.core.xmpp, tab.get_name(), tab.own_nick, message)
tab.joined = False tab.joined = False
self.command_join('"%s/%s"' %(tab.get_name(), tab.own_nick)) if tab.get_name() == domain:
self.command_join('"@%s/%s"' %(tab.get_name(), tab.own_nick))
else:
self.command_join('"%s/%s"' %(tab.get_name(), tab.own_nick))
def completion_server_cycle(self, the_input): def completion_server_cycle(self, the_input):
"""Completion for /server_cycle""" """Completion for /server_cycle"""