Mercurial > libervia-backend
changeset 785:ff9a52077b36
plugin XEP-0033: the comparison for auto-fixing for the stanza recipient was not correct
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 05 Jan 2014 13:00:17 +0100 |
parents | 900987e1c0c4 |
children | c3acc1298a2f |
files | src/plugins/plugin_xep_0033.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0033.py Sun Jan 05 07:26:41 2014 +0100 +++ b/src/plugins/plugin_xep_0033.py Sun Jan 05 13:00:17 2014 +0100 @@ -86,9 +86,8 @@ def discoCallback(entity): if entity is None: return Failure(AbortSendMessage(_("XEP-0033 is being used but the server doesn't support it!"))) - to = JID(mess_data["to"].host) - if to != entity: - logging.warning(_("Stanzas using XEP-0033 should be addressed to %s, not %s!") % (entity, to)) + if mess_data["to"] != entity: + logging.warning(_("Stanzas using XEP-0033 should be addressed to %s, not %s!") % (entity, mess_data["to"])) logging.warning(_("TODO: addressing has be fixed by the backend... fix it in the frontend!")) mess_data["to"] = entity element = mess_data['xml'].addElement('addresses', NS_ADDRESS)