summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-04-04 14:22:25 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-04-04 14:22:25 +0200
commitf72b6ed5c160852908fb67df9dae2c471bab63b0 (patch)
treeeeca1ccd3e66d3327d96fe379c2d9852e3efff6d
parent01a1d4441ef6e56afe7f0c6d5d6c3c10acd9d351 (diff)
downloadpoezio-f72b6ed5c160852908fb67df9dae2c471bab63b0.tar.gz
poezio-f72b6ed5c160852908fb67df9dae2c471bab63b0.tar.bz2
poezio-f72b6ed5c160852908fb67df9dae2c471bab63b0.tar.xz
poezio-f72b6ed5c160852908fb67df9dae2c471bab63b0.zip
Actually skip whitespace ping logging (thanks Ge0rG)
Fixes what 9da6f5328c714f6bdcbc89cb038e10116ab0bed6 intended to do. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
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)