# HG changeset patch # User souliane # Date 1388923217 -3600 # Node ID ff9a52077b364482af8f49a2ef9379ee6577ad56 # Parent 900987e1c0c4288ecf375f6f6c18e1c51a7c13c2 plugin XEP-0033: the comparison for auto-fixing for the stanza recipient was not correct diff -r 900987e1c0c4 -r ff9a52077b36 src/plugins/plugin_xep_0033.py --- 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)