summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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>