diff --git a/src/common/xmpp/roster.py b/src/common/xmpp/roster.py index 86c9e8438..fd882f5ab 100644 --- a/src/common/xmpp/roster.py +++ b/src/common/xmpp/roster.py @@ -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':