From d3590b1921dd7807473ce8f110c68cfc767e0e5a Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 2 Mar 2005 20:40:44 +0000 Subject: [PATCH] new message works --- plugins/gtkgui/dialogs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/gtkgui/dialogs.py b/plugins/gtkgui/dialogs.py index f59175606..134d7c81e 100644 --- a/plugins/gtkgui/dialogs.py +++ b/plugins/gtkgui/dialogs.py @@ -583,12 +583,12 @@ class new_message_window: #FIXME: NOT READY jid = userid # use User class, new_chat expects it that way - user = gtkgui.User((jid, jid, ['not in the roster'], \ - 'not in the roster', 'not in the roster', 'none', None, '', 0, '')) - self.plugin.contacts[self.account][jid] = [user] + user = gtkgui.User(jid, jid, ['not in the roster'], \ + 'not in the roster', 'not in the roster', 'none', None, '', 0, '') + self.plugin.roster.contacts[self.account][jid] = [user] #FIXME: don't add him if we already have him (see on_message code on gtkgui.py) self.plugin.roster.add_user_to_roster(user.jid, self.account) - self.plugin.roster.new_chat(user.jid, self.account) + self.plugin.roster.new_chat(user, self.account) widget.get_toplevel().destroy() def __init__(self, plugin, account):