From a4566d5d91db6dc0cb6d44e750f435bb6f027b33 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Thu, 28 Jan 2010 17:14:37 +0000 Subject: =?UTF-8?q?n'affiche=20plus=20les=20infos=20que=20si=20on=20est=20?= =?UTF-8?q?sur=20la=20fen=C3=AAtre=20Info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client.py | 2 +- src/gui.py | 5 +++-- src/poezio.cfg | 2 +- 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): diff --git a/src/gui.py b/src/gui.py index 82dd96a1..2e2a33e7 100644 --- a/src/gui.py +++ b/src/gui.py @@ -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 -- cgit v1.2.3