Fixed bug in presence subscription handling.

Subscription requests and responses were not setting the correct 'to'
attribute.
This commit is contained in:
Lance Stout
2010-10-25 12:52:32 -04:00
parent 46ffa8e9fe
commit ac330b5c6c
2 changed files with 44 additions and 2 deletions

View File

@@ -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.