comparison libervia.py @ 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
comparison
equal deleted inserted replaced
125:f9d63624699f 126:adecb2566b53
323 def _roomJoinedCb(self, room_jid, room_nicks, user_nick): 323 def _roomJoinedCb(self, room_jid, room_nicks, user_nick):
324 _target = JID(room_jid) 324 _target = JID(room_jid)
325 self.room_list.add(_target) 325 self.room_list.add(_target)
326 chat_panel = panels.ChatPanel(self, _target, type='group') 326 chat_panel = panels.ChatPanel(self, _target, type='group')
327 chat_panel.setUserNick(user_nick) 327 chat_panel.setUserNick(user_nick)
328 if room_jid.node.startswith('sat_tarot_'): #XXX: it's not really beautiful, but it works :) 328 if _target.node.startswith('sat_tarot_'): #XXX: it's not really beautiful, but it works :)
329 self.addTab(chat_panel, "Tarot") 329 self.addTab(chat_panel, "Tarot")
330 else: 330 else:
331 self.addTab(chat_panel, _target.node) 331 self.addTab(chat_panel, _target.node)
332 chat_panel.setPresents(room_nicks) 332 chat_panel.setPresents(room_nicks)
333 chat_panel.historyPrint() 333 chat_panel.historyPrint()