Fix that again

This commit is contained in:
Florent Le Coz 2011-04-04 02:31:46 +02:00
parent 22832b339b
commit 5aa5a25b8a

View file

@ -807,7 +807,7 @@ class MucTab(ChatTab):
else:
kick_msg = _('\x191%(spec)s \x193%(nick)s\x195 has been banned') % {'spec':theme.CHAR_KICK, 'nick':from_nick.replace('"', '\\"')}
if reason is not None and reason.text:
kick_msg += _(' Reason: \x196%(reason\x195)s') % {'reason': reason.text}
kick_msg += _('\x195 Reason: \x196%(reason\x195)s') % {'reason': reason.text}
room.add_message(kick_msg)
def on_user_kicked(self, room, presence, user, from_nick):
@ -833,7 +833,7 @@ class MucTab(ChatTab):
else:
kick_msg = _('\x191%(spec)s \x193%(nick)s\x195 has been kicked') % {'spec':theme.CHAR_KICK, 'nick':from_nick.replace('"', '\\"')}
if reason is not None and reason.text:
kick_msg += _(' Reason: \x196(%reason)s') % {'reason': reason.text}
kick_msg += _('\x195 Reason: \x196%(reason)s') % {'reason': reason.text}
room.add_message(kick_msg)
def on_user_leave_groupchat(self, room, user, jid, status, from_nick, from_room):