misc: fix unnamed arguments in format strings
This commit is contained in:
parent
40935cbc5e
commit
24beb81688
1 changed files with 14 additions and 14 deletions
|
|
@ -151,10 +151,10 @@ class XEP_0249(object):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue