changeset 126:adecb2566b53

browser: fixed tabs not opening on room joining
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2012 00:43:13 +0100
parents f9d63624699f
children e19a8de8b3de
files libervia.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia.py	Thu Jan 05 00:22:03 2012 +0100
+++ b/libervia.py	Thu Jan 05 00:43:13 2012 +0100
@@ -325,7 +325,7 @@
         self.room_list.add(_target)
         chat_panel = panels.ChatPanel(self, _target, type='group')
         chat_panel.setUserNick(user_nick)
-        if room_jid.node.startswith('sat_tarot_'): #XXX: it's not really beautiful, but it works :)
+        if _target.node.startswith('sat_tarot_'): #XXX: it's not really beautiful, but it works :)
             self.addTab(chat_panel, "Tarot")
         else:
             self.addTab(chat_panel, _target.node)