diff options
author | mathieui <mathieui@mathieui.net> | 2013-01-04 10:11:58 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-01-04 10:11:58 +0100 |
commit | 15fce04294a5e254c3ad04bc1c0d67215976c545 (patch) | |
tree | d3adb617c3913fb4db8e0671c567052dad3c5666 | |
parent | 68c6c06095b3bdc90810405601751d8c42f0c69c (diff) | |
download | poezio-15fce04294a5e254c3ad04bc1c0d67215976c545.tar.gz poezio-15fce04294a5e254c3ad04bc1c0d67215976c545.tar.bz2 poezio-15fce04294a5e254c3ad04bc1c0d67215976c545.tar.xz poezio-15fce04294a5e254c3ad04bc1c0d67215976c545.zip |
Do not display the messages with type=headline and an empty body
(thanks, jappix)
-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 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 |