diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-04-10 14:19:18 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-04-10 14:19:18 +0200 |
commit | 72ec42832096fe8b8759f2c9dce14d002ec4f277 (patch) | |
tree | c04c3b99184f3997597a816550c8eca6fb50eae5 | |
parent | 01509b463b3555c9e630991b3b931c1c30c06ef1 (diff) | |
download | poezio-72ec42832096fe8b8759f2c9dce14d002ec4f277.tar.gz poezio-72ec42832096fe8b8759f2c9dce14d002ec4f277.tar.bz2 poezio-72ec42832096fe8b8759f2c9dce14d002ec4f277.tar.xz poezio-72ec42832096fe8b8759f2c9dce14d002ec4f277.zip |
Ignore messages with empty body. fixed #2144
-rw-r--r-- | src/core.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py index 76f5026e..79dbad94 100644 --- a/src/core.py +++ b/src/core.py @@ -481,6 +481,8 @@ class Core(object): if not room: return body = xhtml.get_body_from_message_stanza(message) + if not body: + return room.add_message(body, time=None, nickname=nick_from, forced_user=self.get_room_by_name(room_from).get_user_by_name(nick_from)) conversation = self.get_tab_by_name(jid.full, tabs.PrivateTab) |