diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-02-14 04:41:14 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-02-14 04:41:14 +0000 |
commit | 9ac6a55af0250e075691e578fee7ad5728d704b8 (patch) | |
tree | 956c04ab168a478ff50c36496fbb0a916aab128e /src/gui.py | |
parent | 724c45770c6736b436edcef08388e58a5c98cc99 (diff) | |
download | poezio-9ac6a55af0250e075691e578fee7ad5728d704b8.tar.gz poezio-9ac6a55af0250e075691e578fee7ad5728d704b8.tar.bz2 poezio-9ac6a55af0250e075691e578fee7ad5728d704b8.tar.xz poezio-9ac6a55af0250e075691e578fee7ad5728d704b8.zip |
new colors
Diffstat (limited to 'src/gui.py')
-rw-r--r-- | src/gui.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -359,7 +359,10 @@ class Gui(object): body = stanza.getBody() subject = stanza.getSubject() if subject: - info = room.add_info(_("%(nick)s changed the subject to: %(subject)s") % {'nick':nick_from, 'subject':subject}) + if nick_from: + info = room.add_info(_("%(nick)s changed the subject to: %(subject)s") % {'nick':nick_from, 'subject':subject}) + else: + info = room.add_info(_("The subject is: %(subject)s") % {'subject':subject}) self.window.text_win.add_line(room, (datetime.now(), info)) room.topic = subject.encode('utf-8').replace('\n', '|') if room == self.current_room(): |