summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-28 17:14:37 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-28 17:14:37 +0000
commita4566d5d91db6dc0cb6d44e750f435bb6f027b33 (patch)
tree6e80a5d96f443d9f510183a7569394a3f517f21d
parenta7aa1e0e6ba917bd0d66c26334f77007b2876f94 (diff)
downloadpoezio-a4566d5d91db6dc0cb6d44e750f435bb6f027b33.tar.gz
poezio-a4566d5d91db6dc0cb6d44e750f435bb6f027b33.tar.bz2
poezio-a4566d5d91db6dc0cb6d44e750f435bb6f027b33.tar.xz
poezio-a4566d5d91db6dc0cb6d44e750f435bb6f027b33.zip
n'affiche plus les infos que si on est sur la fenĂȘtre Info
-rw-r--r--src/client.py2
-rw-r--r--src/gui.py5
-rw-r--r--src/poezio.cfg2
-rw-r--r--src/window.py2
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 <louizatakk@fedoraproject.org>