summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-25 12:52:32 -0400
committerLance Stout <lancestout@gmail.com>2010-10-25 12:52:32 -0400
commitac330b5c6c7a24eda0e91d4fc70414cfff014545 (patch)
tree1c4b5eb35d2c1de806abf72f43de8baf3e9ed3cc /sleekxmpp
parent46ffa8e9fe02b355426eb1b044dbdd8fffe20549 (diff)
downloadslixmpp-ac330b5c6c7a24eda0e91d4fc70414cfff014545.tar.gz
slixmpp-ac330b5c6c7a24eda0e91d4fc70414cfff014545.tar.bz2
slixmpp-ac330b5c6c7a24eda0e91d4fc70414cfff014545.tar.xz
slixmpp-ac330b5c6c7a24eda0e91d4fc70414cfff014545.zip
Fixed bug in presence subscription handling.
Subscription requests and responses were not setting the correct 'to' attribute.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/basexmpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index bef4711e..1e8441aa 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -621,8 +621,8 @@ class BaseXMPP(XMLStream):
None * Disable automatic handling and use
a custom handler.
"""
- presence = self.Presence()
- presence['to'] = presence['from'].bare
+ presence.reply()
+ presence['to'] = presence['to'].bare
# We are using trinary logic, so conditions have to be
# more explicit than usual.