Fix a typo that made the ban messages not appear at all

This commit is contained in:
Florent Le Coz 2011-04-16 01:19:53 +02:00
parent 60e0b2caab
commit 8167f9d3a4
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright 2010-2011 Le Coz Florent <louiz@louiz.org>
#
# This file is part of Poezio.

View file

@ -853,7 +853,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 += _('\x195 Reason: \x196%(reason\x195)s') % {'reason': reason.text}
kick_msg += _('\x195 Reason: \x196%(reason)s\x195') % {'reason': reason.text}
room.add_message(kick_msg)
def on_user_kicked(self, room, presence, user, from_nick):