From 15fce04294a5e254c3ad04bc1c0d67215976c545 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 4 Jan 2013 10:11:58 +0100 Subject: [PATCH] Do not display the messages with type=headline and an empty body (thanks, jappix) --- src/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index cfe92189..d6c347fa 100644 --- a/src/core.py +++ b/src/core.py @@ -2382,7 +2382,7 @@ class Core(object): body = xhtml.get_body_from_message_stanza(message) if message['type'] == 'error': return self.information(self.get_error_message(message, deprecated=True), 'Error') - elif message['type'] == 'headline': + elif message['type'] == 'headline' and message['body']: return self.information('%s says: %s' % (message['from'], message['body']), 'Headline') if not body: return