bugfix: we don't have the jid in contacts.roster if it's a pm

This commit is contained in:
Yann Leboulanger 2005-06-08 09:44:59 +00:00
parent 74a45a7224
commit c68f709c31
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class History_window:
self.nb_line = gajim.logger.get_nb_line(jid) self.nb_line = gajim.logger.get_nb_line(jid)
xml = gtk.glade.XML(GTKGUI_GLADE, 'history_window', APP) xml = gtk.glade.XML(GTKGUI_GLADE, 'history_window', APP)
self.window = xml.get_widget('history_window') self.window = xml.get_widget('history_window')
if account: if account and self.plugin.roster.contacts[account].has_key(jid):
list_users = self.plugin.roster.contacts[account][self.jid] list_users = self.plugin.roster.contacts[account][self.jid]
user = list_users[0] user = list_users[0]
title = 'Conversation History with ' + user.name title = 'Conversation History with ' + user.name