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,6 +2284,9 @@ class Core(object):
if tab.joined:
muc.leave_groupchat(tab.core.xmpp, tab.get_name(), tab.own_nick, message)
tab.joined = False
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):