summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-02-20 08:39:40 +0100
committermathieui <mathieui@mathieui.net>2014-02-20 08:39:40 +0100
commita9f0607123798fa6ad990b322e90178ea4101fd8 (patch)
treea28e15fa55c77bc4e48e630a56b11cf907867ccb /src
parentfd0735fe2d8372acb02254bddc01e2ae281b8dc6 (diff)
downloadpoezio-a9f0607123798fa6ad990b322e90178ea4101fd8.tar.gz
poezio-a9f0607123798fa6ad990b322e90178ea4101fd8.tar.bz2
poezio-a9f0607123798fa6ad990b322e90178ea4101fd8.tar.xz
poezio-a9f0607123798fa6ad990b322e90178ea4101fd8.zip
Fix #2470 (server_cycle joining the wrong room with domain-only muc)
Diffstat (limited to 'src')
-rw-r--r--src/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index ed78e6a3..f9c6d5e3 100644
--- a/src/core.py
+++ b/src/core.py
@@ -2284,7 +2284,10 @@ class Core(object):
if tab.joined:
muc.leave_groupchat(tab.core.xmpp, tab.get_name(), tab.own_nick, message)
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):
"""Completion for /server_cycle"""