summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-12 19:16:02 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-12 19:16:02 +0000
commit15635f0c39fd7e7dc3937b749a34342ee1e25ae5 (patch)
treed1ea21426fb3ba13688f4f71a108a0f935b1867b /src
parentb421515598ed0178aa550f4d921a7496c81f4fae (diff)
downloadpoezio-15635f0c39fd7e7dc3937b749a34342ee1e25ae5.tar.gz
poezio-15635f0c39fd7e7dc3937b749a34342ee1e25ae5.tar.bz2
poezio-15635f0c39fd7e7dc3937b749a34342ee1e25ae5.tar.xz
poezio-15635f0c39fd7e7dc3937b749a34342ee1e25ae5.zip
displays correctly the status/nick changes
Diffstat (limited to 'src')
-rw-r--r--src/client.py4
-rw-r--r--src/gui.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/client.py b/src/client.py
index d3561a86..9840d259 100644
--- a/src/client.py
+++ b/src/client.py
@@ -20,8 +20,8 @@
import sys
# disable any printout (this would mess the display)
stderr = sys.stderr
-# sys.stdout = open('/dev/null', 'w')
-# sys.stderr = open('/dev/null', 'w')
+sys.stdout = open('/dev/null', 'w')
+sys.stderr = open('/dev/null', 'w')
from connection import Connection
from multiuserchat import MultiUserChat
diff --git a/src/gui.py b/src/gui.py
index a7a8e06a..3c569e5f 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -346,7 +346,7 @@ class Gui(object):
if not body:
body = stanza.getSubject()
info = room.add_info(_("%(nick)s changed the subject to: %(subject)s") % {'nick':nick_from, 'subject':stanza.getSubject()})
- self.window.text_win.add_line(room, (datetime.now(), info, None))
+ self.window.text_win.add_line(room, (datetime.now(), info))
room.topic = stanza.getSubject().encode('utf-8').replace('\n', '|')
if room == self.current_room():
self.window.topic_win.refresh(room.topic)
@@ -375,7 +375,7 @@ class Gui(object):
else:
msg = room.on_presence(stanza, from_nick)
if room == self.current_room():
- self.window.text_win.add_line(room, (datetime.now(), msg, None))
+ self.window.text_win.add_line(room, (datetime.now(), msg))
self.window.text_win.refresh(room.name)
self.window.user_win.refresh(room.users)
self.window.text_win.refresh()
@@ -515,7 +515,7 @@ class Gui(object):
msg = "%s=%s" % (option, value)
room = self.current_room()
room.add_info(msg)
- self.window.text_win.add_line(room, (datetime.now(), msg, None))
+ self.window.text_win.add_line(room, (datetime.now(), msg))
self.window.text_win.refresh(room.name)
self.window.input.refresh()
@@ -584,7 +584,7 @@ class Gui(object):
room = self.get_room_by_name("Info")
info = room.add_info(msg)
if self.current_room() == room:
- self.window.text_win.add_line(room, (datetime.now(), info, None))
+ self.window.text_win.add_line(room, (datetime.now(), info))
self.window.text_win.refresh(room.name)
curses.doupdate()