ignore roster pushes from unknown sender. fixes #3098
This commit is contained in:
parent
96e6457c30
commit
06507c1b03
|
@ -64,6 +64,10 @@ class Roster(PlugIn):
|
|||
def RosterIqHandler(self,dis,stanza):
|
||||
""" Subscription tracker. Used internally for setting items state in
|
||||
internal roster representation. """
|
||||
sender = stanza.getAttr('from')
|
||||
if not sender == None: and not sender.bareMatch(
|
||||
self._owner.User + '@' + self._owner.Server):
|
||||
return
|
||||
for item in stanza.getTag('query').getTags('item'):
|
||||
jid=item.getAttr('jid')
|
||||
if item.getAttr('subscription')=='remove':
|
||||
|
|
Loading…
Reference in New Issue