From 94153c490b3ec2dc029a90d179b3cde335060294 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Wed, 4 Aug 2010 23:54:02 +0000 Subject: fixes the sys.excepthook thread bug, and fix the traceback on joining a room with non-ascii chars --- src/gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui.py') diff --git a/src/gui.py b/src/gui.py index f5116c4f..8a9400e2 100644 --- a/src/gui.py +++ b/src/gui.py @@ -141,6 +141,7 @@ class Gui(object): """ main loop waiting for the user to press a key """ + self.refresh_window() while True: doupdate() char=read_char(stdscr) @@ -163,7 +164,7 @@ class Gui(object): returns the room that has this name """ for room in self.rooms: - if room.name == name: + if room.name.decode('utf-8') == name: return room return None @@ -449,6 +450,7 @@ class Gui(object): from_room = stanza.getFrom().getStripped() room = self.get_room_by_name(from_room) if not room: + # common.debug(':(:(:(:(\n') return else: msg = None -- cgit v1.2.3