diff src/plugins/plugin_xep_0249.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 1a759096ccbd
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0249.py	Mon Feb 17 12:25:17 2014 +0100
+++ b/src/plugins/plugin_xep_0249.py	Mon Feb 17 14:58:26 2014 +0100
@@ -151,10 +151,10 @@
         if autojoin == "always":
             self._accept(room, profile)
         elif autojoin == "ask":
-            data = {"message": _("You have been invited by %s to join the room %s. Do you accept?") % (from_, room), "title": _("MUC invitation")}
+            data = {"message": _("You have been invited by %(user)s to join the room %(room)s. Do you accept?") % {'user': from_, 'room': room}, "title": _("MUC invitation")}
             self.host.askConfirmation(room, "YES/NO", data, accept_cb, profile)
         else:
-            self.host.bridge.newAlert(_("An invitation from %s to join the room %s has been declined according to your personal settings.") % (from_, room), _("MUC invitation"), "INFO", profile)
+            self.host.bridge.newAlert(_("An invitation from %(user)s to join the room %(room)s has been declined according to your personal settings.") % {'user': from_, 'room': room}, _("MUC invitation"), "INFO", profile)
 
 
 class XEP_0249_handler(XMPPHandler):