fix possible tb

This commit is contained in:
Dimitur Kirov 2005-08-24 12:26:14 +00:00
parent eba6131a59
commit 379e5c4028
1 changed files with 2 additions and 0 deletions

View File

@ -695,6 +695,8 @@ class GroupchatWindow(chat.Chat):
"""Print a line in the conversation:
if contact is set: it's a message from someone
if contact is not set: it's a message from the server"""
if type(text) == unicode:
text = text.encode('utf-8')
other_tags_for_name = []
other_tags_for_text = []
if contact: