diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client.py | 2 | ||||
-rw-r--r-- | src/gui.py | 5 | ||||
-rw-r--r-- | src/poezio.cfg | 2 | ||||
-rw-r--r-- | src/window.py | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/src/client.py b/src/client.py index db1af8fe..90d08415 100644 --- a/src/client.py +++ b/src/client.py @@ -27,7 +27,7 @@ from curses import wrapper, initscr if len(sys.argv) == 1: # not debug, so hide any error message and disable C-c import signal - sys.stderr = open('/dev/null', 'a') + sys.stderr = open('logs', 'a') signal.signal(signal.SIGINT, signal.SIG_IGN) class Client(object): @@ -276,7 +276,7 @@ class Gui(object): self.window.input.clear_text() if line == "": return - if line.strip().startswith('/'): + if line.startswith('/'): command = line.strip()[:].split()[0][1:] args = line.strip()[:].split()[1:] if command in self.commands.keys(): @@ -299,7 +299,8 @@ class Gui(object): def information(self, msg): room = self.get_room_by_name("Info") info = room.add_info(msg) - self.window.text_win.add_line(room, (datetime.now(), info)) + if self.current_room() == room: + self.window.text_win.add_line(room, (datetime.now(), info)) def command_quit(self, args): self.reset_curses() diff --git a/src/poezio.cfg b/src/poezio.cfg index 9c88220e..39be1c85 100644 --- a/src/poezio.cfg +++ b/src/poezio.cfg @@ -3,7 +3,7 @@ logfile = logs resource = poezio server = louiz.org port = 5222 -rooms = discussion@kikoo.louiz.org/poezio:test@chat.jabberfr.org/poezio +rooms = discussion@kikoo.louiz.org/poezio:test@chat.jabberfr.org/poefion diff --git a/src/window.py b/src/window.py index 5c4c1a32..5155d1dd 100644 --- a/src/window.py +++ b/src/window.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +$#!/usr/bin/python # -*- coding:utf-8 -*- # # Copyright 2010 Le Coz Florent <louizatakk@fedoraproject.org> |