summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-16 02:03:23 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-16 02:03:23 +0000
commit410c68c50d429e12fe3ade4100bfdb71d333ab9e (patch)
treeec1670af07887c3eab4c631e2c12ee223dc3fa1e /src
parent121380f83627d673e8cd35b6ff771e107c8b5dac (diff)
downloadpoezio-410c68c50d429e12fe3ade4100bfdb71d333ab9e.tar.gz
poezio-410c68c50d429e12fe3ade4100bfdb71d333ab9e.tar.bz2
poezio-410c68c50d429e12fe3ade4100bfdb71d333ab9e.tar.xz
poezio-410c68c50d429e12fe3ade4100bfdb71d333ab9e.zip
fixed #1175
Diffstat (limited to 'src')
-rw-r--r--src/gui.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui.py b/src/gui.py
index 452bd92c..ff146c9c 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -232,7 +232,6 @@ class Gui(object):
self.handler.connect('join-room', self.join_room)
self.handler.connect('room-presence', self.room_presence)
self.handler.connect('room-message', self.room_message)
- # self.handler.connect('room-iq', self.room_iq)
def main_loop(self, stdscr):
while 1:
@@ -418,7 +417,11 @@ class Gui(object):
func = self.commands[command][0]
func(args)
return
- if self.current_room().name != 'Info':
+ else:
+ info = self.current_room().add_info(_("Error: unknown command (%s)") % (command))
+ self.window.text_win.add_line(self.current_room(), (datetime.now(), info))
+ self.window.text_win.refresh(self.current_room().name)
+ elif self.current_room().name != 'Info':
self.muc.send_message(self.current_room().name, line)
self.window.input.refresh()