From f72b6ed5c160852908fb67df9dae2c471bab63b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 4 Apr 2020 14:22:25 +0200 Subject: Actually skip whitespace ping logging (thanks Ge0rG) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes what 9da6f5328c714f6bdcbc89cb038e10116ab0bed6 intended to do. Signed-off-by: Maxime “pep” Buquet --- poezio/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 47915008..c489cc3b 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -1512,7 +1512,7 @@ class HandlerCore: except: # Most of the time what gets logged is whitespace pings. Skip. # And also skip tab updates. - if stanza.strip() != '': + if stanza.strip() == '': return None log.debug('', exc_info=True) -- cgit v1.2.3