diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-02-16 02:03:23 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-02-16 02:03:23 +0000 |
commit | 410c68c50d429e12fe3ade4100bfdb71d333ab9e (patch) | |
tree | ec1670af07887c3eab4c631e2c12ee223dc3fa1e /src | |
parent | 121380f83627d673e8cd35b6ff771e107c8b5dac (diff) | |
download | poezio-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.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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() |