diff --git a/plugins/gtkgui/dialogs.py b/plugins/gtkgui/dialogs.py index 6639d661f..2db20250c 100644 --- a/plugins/gtkgui/dialogs.py +++ b/plugins/gtkgui/dialogs.py @@ -632,10 +632,9 @@ class New_message_dialog: self.plugin.roster.add_user_to_roster(user.jid, self.account) else: user = self.plugin.roster.contacts[self.account][jid][0] - if self.plugin.windows[self.account]['chats'].has_key(jid): - self.plugin.windows[self.account]['chats'][jid].active_tab(jid) - else: + if not self.plugin.windows[self.account]['chats'].has_key(jid): self.plugin.roster.new_chat(user, self.account) + self.plugin.windows[self.account]['chats'][jid].active_tab(jid) widget.get_toplevel().destroy() def __init__(self, plugin, account):