diff options
author | Lance Stout <lancestout@gmail.com> | 2012-10-22 19:22:27 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-10-22 19:22:27 -0700 |
commit | 4598031dd2493a85824d5d9f7488703f5d2d0a14 (patch) | |
tree | 724301c3037a396fcce23d78907fb41a27feb091 /sleekxmpp/roster/item.py | |
parent | 5e9266ba90a11eb5f20d3f049b34ef296411f225 (diff) | |
download | slixmpp-4598031dd2493a85824d5d9f7488703f5d2d0a14.tar.gz slixmpp-4598031dd2493a85824d5d9f7488703f5d2d0a14.tar.bz2 slixmpp-4598031dd2493a85824d5d9f7488703f5d2d0a14.tar.xz slixmpp-4598031dd2493a85824d5d9f7488703f5d2d0a14.zip |
Respond to probes when the subscription is 'from', not 'to'.
Diffstat (limited to 'sleekxmpp/roster/item.py')
-rw-r--r-- | sleekxmpp/roster/item.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |