comparison 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
comparison
equal deleted inserted replaced
843:efd92a645220 844:f3513c8cc2e6
149 self._accept(room, profile) 149 self._accept(room, profile)
150 150
151 if autojoin == "always": 151 if autojoin == "always":
152 self._accept(room, profile) 152 self._accept(room, profile)
153 elif autojoin == "ask": 153 elif autojoin == "ask":
154 data = {"message": _("You have been invited by %s to join the room %s. Do you accept?") % (from_, room), "title": _("MUC invitation")} 154 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")}
155 self.host.askConfirmation(room, "YES/NO", data, accept_cb, profile) 155 self.host.askConfirmation(room, "YES/NO", data, accept_cb, profile)
156 else: 156 else:
157 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) 157 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)
158 158
159 159
160 class XEP_0249_handler(XMPPHandler): 160 class XEP_0249_handler(XMPPHandler):
161 implements(iwokkel.IDisco) 161 implements(iwokkel.IDisco)
162 162