summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-09 15:34:06 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-09 15:34:06 +0000
commit1e17eeb7ea9dcf356172f5f28567a2f73ba3f354 (patch)
tree0437c01d7bac76355b981a539a700b928e60fb08 /src
parent02a805679cd258224454576bee8efe5c7315ac6d (diff)
downloadpoezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.tar.gz
poezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.tar.bz2
poezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.tar.xz
poezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.zip
avoid a traceback on subject, whatever
Diffstat (limited to 'src')
-rw-r--r--src/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 00106157..4a124e31 100644
--- a/src/core.py
+++ b/src/core.py
@@ -846,7 +846,7 @@ class Core(object):
room_from = message.getMucroom()
room = self.get_room_by_name(room_from)
subject = message['subject']
- if not subject:
+ if not subject or not room:
return
if nick_from:
self.add_message_to_text_buffer(room, _("%(nick)s set the subject to: %(subject)s") % {'nick':nick_from, 'subject':subject}, time=None)