From 3dbb75f9dbe2ef43b65f78baae6cc9c507f42431 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 24 Jun 2004 21:37:27 +0000 Subject: [PATCH] agents cannot have 2 different resources --- plugins/gtkgui/gtkgui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 88bf8a0f2..7c7811104 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -1487,8 +1487,8 @@ class plugin: break if not user1: user1 = self.roster.contacts[account][ji][0] - if resources != [''] and (len(luser) != 1 or - luser[0].show != 'offline'): + if (resources != [''] and (len(luser) != 1 or + luser[0].show != 'offline')) and not string.find(jid, "@") <= 0: user1 = user(user1.jid, user1.name, user1.groups, \ user1.show, user1.status, user1.sub, user1.resource, \ user1.priority)