Fix #2470 (server_cycle joining the wrong room with domain-only muc)
This commit is contained in:
parent
fd0735fe2d
commit
a9f0607123
1 changed files with 4 additions and 1 deletions
|
@ -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"""
|
||||||
|
|
Loading…
Reference in a new issue