agents cannot have 2 different resources
This commit is contained in:
parent
9e8bb03f25
commit
3dbb75f9db
1 changed files with 2 additions and 2 deletions
|
@ -1487,8 +1487,8 @@ class plugin:
|
||||||
break
|
break
|
||||||
if not user1:
|
if not user1:
|
||||||
user1 = self.roster.contacts[account][ji][0]
|
user1 = self.roster.contacts[account][ji][0]
|
||||||
if resources != [''] and (len(luser) != 1 or
|
if (resources != [''] and (len(luser) != 1 or
|
||||||
luser[0].show != 'offline'):
|
luser[0].show != 'offline')) and not string.find(jid, "@") <= 0:
|
||||||
user1 = user(user1.jid, user1.name, user1.groups, \
|
user1 = user(user1.jid, user1.name, user1.groups, \
|
||||||
user1.show, user1.status, user1.sub, user1.resource, \
|
user1.show, user1.status, user1.sub, user1.resource, \
|
||||||
user1.priority)
|
user1.priority)
|
||||||
|
|
Loading…
Add table
Reference in a new issue