diff src/plugins/plugin_xep_0033.py @ 844:f3513c8cc2e6

misc: fix unnamed arguments in format strings
author souliane <souliane@mailoo.org>
date Mon, 17 Feb 2014 14:58:26 +0100
parents 1fe00f0c9a91
children c897c8d321b3
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0033.py	Mon Feb 17 12:25:17 2014 +0100
+++ b/src/plugins/plugin_xep_0033.py	Mon Feb 17 14:58:26 2014 +0100
@@ -87,7 +87,7 @@
                 if entity is None:
                     return Failure(AbortSendMessage(_("XEP-0033 is being used but the server doesn't support it!")))
                 if mess_data["to"] != entity:
-                    logging.warning(_("Stanzas using XEP-0033 should be addressed to %s, not %s!") % (entity, mess_data["to"]))
+                    logging.warning(_("Stanzas using XEP-0033 should be addressed to %(expected)s, not %(current)s!") % {'expected': entity, 'current': 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)