summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 381110da..61d32ae8 100644
--- a/src/core.py
+++ b/src/core.py
@@ -877,6 +877,11 @@ class Core(object):
"""
open a new conversation tab and focus it if needed
"""
+ for tab in self.tabs: # if the room exists, focus it and return
+ if isinstance(tab, tabs.ConversationTab):
+ if tab.get_name() == jid:
+ self.command_win('%s' % tab.nb)
+ return tab
new_tab = tabs.ConversationTab(jid)
# insert it in the rooms
self.add_tab(new_tab, focus)