From 1986ea26cae3cd33d3a893db052c57824d1bca57 Mon Sep 17 00:00:00 2001 From: souliane Date: Sun, 5 Jan 2014 13:00:17 +0100 Subject: [PATCH] plugin XEP-0033: the comparison for auto-fixing for the stanza recipient was not correct --- src/plugins/plugin_xep_0033.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/plugin_xep_0033.py b/src/plugins/plugin_xep_0033.py index 9d753a2e..81cb061f 100644 --- a/src/plugins/plugin_xep_0033.py +++ b/src/plugins/plugin_xep_0033.py @@ -86,9 +86,8 @@ class XEP_0033(object): 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)