diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2011-01-09 15:34:06 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2011-01-09 15:34:06 +0000 |
commit | 1e17eeb7ea9dcf356172f5f28567a2f73ba3f354 (patch) | |
tree | 0437c01d7bac76355b981a539a700b928e60fb08 /src/core.py | |
parent | 02a805679cd258224454576bee8efe5c7315ac6d (diff) | |
download | poezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.tar.gz poezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.tar.bz2 poezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.tar.xz poezio-1e17eeb7ea9dcf356172f5f28567a2f73ba3f354.zip |
avoid a traceback on subject, whatever
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 2 |
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) |