comparison frontends/src/primitivus/chat.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 084b52afdceb
children cd02f5ef30df
comparison
equal deleted inserted replaced
843:efd92a645220 844:f3513c8cc2e6
315 self.host.redraw() 315 self.host.redraw()
316 if not self.host.x_notify.hasFocus(): 316 if not self.host.x_notify.hasFocus():
317 if self.type == "one2one": 317 if self.type == "one2one":
318 self.host.x_notify.sendNotification(_("Primitivus: %s is talking to you") % from_jid) 318 self.host.x_notify.sendNotification(_("Primitivus: %s is talking to you") % from_jid)
319 elif self.getUserNick().lower() in msg.lower(): 319 elif self.getUserNick().lower() in msg.lower():
320 self.host.x_notify.sendNotification(_("Primitivus: %s mentioned you in room '%s'") % (from_jid, self.target)) 320 self.host.x_notify.sendNotification(_("Primitivus: %(user)s mentioned you in room '%(room)s'") % {'user': from_jid, 'room': self.target})
321 321
322 def startGame(self, game_type, referee, players): 322 def startGame(self, game_type, referee, players):
323 """Configure the chat window to start a game""" 323 """Configure the chat window to start a game"""
324 if game_type=="Tarot": 324 if game_type=="Tarot":
325 self.tarot_wid = CardGame(self, referee, players, self.nick) 325 self.tarot_wid = CardGame(self, referee, players, self.nick)