Respond to probes when the subscription is 'from', not 'to'.

This commit is contained in:
Lance Stout 2012-10-22 19:22:27 -07:00
parent 5e9266ba90
commit 4598031dd2

View File

@ -479,11 +479,11 @@ class RosterItem(object):
self.xmpp.event('roster_subscription_removed', presence)
def handle_probe(self, presence):
if self['to']:
if self['from']:
self.send_last_presence()
if self['pending_out']:
self.subscribe()
if not self['to']:
if not self['from']:
self._unsubscribed()
def reset(self):