diff options
author | mathieui <mathieui@mathieui.net> | 2013-01-28 19:34:53 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-01-28 19:34:53 +0100 |
commit | 80f689b2fa6ac0b662a3e8f52a80b1cebb555e21 (patch) | |
tree | 9dbdd52089e98ba87cb33eca8a4ffbf926588d3d /src/core.py | |
parent | 0c19f49e9852e6fdd195be970804cb67091b842b (diff) | |
download | poezio-80f689b2fa6ac0b662a3e8f52a80b1cebb555e21.tar.gz poezio-80f689b2fa6ac0b662a3e8f52a80b1cebb555e21.tar.bz2 poezio-80f689b2fa6ac0b662a3e8f52a80b1cebb555e21.tar.xz poezio-80f689b2fa6ac0b662a3e8f52a80b1cebb555e21.zip |
Do not open new useless tabs with /message
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py index dc47c003..6a17a7c1 100644 --- a/src/core.py +++ b/src/core.py @@ -2304,7 +2304,11 @@ class Core(object): jid = safeJID(args[0]) if not jid.user and not jid.domain and not jid.resource: return self.information('Invalid JID.', 'Error') - tab = self.open_conversation_window(jid.full, focus=True) + tab = self.get_conversation_by_jid(jid.full, False) + if not tab: + tab = self.open_conversation_window(jid.full, focus=True) + else: + self.focus_tab_named(tab.get_name()) if len(args) > 1: tab.command_say(args[1]) |