From 4598031dd2493a85824d5d9f7488703f5d2d0a14 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 22 Oct 2012 19:22:27 -0700 Subject: Respond to probes when the subscription is 'from', not 'to'. --- sleekxmpp/roster/item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/roster') diff --git a/sleekxmpp/roster/item.py b/sleekxmpp/roster/item.py index 6e9c0d01..ae194e0a 100644 --- a/sleekxmpp/roster/item.py +++ b/sleekxmpp/roster/item.py @@ -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): -- cgit v1.2.3