summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py4
1 files changed, 3 insertions, 1 deletions
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