Verified Commit 9da6f532 authored by Maxime Buquet's avatar Maxime Buquet

Skip whitespace ping logging

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 854bb0ce
......@@ -1510,6 +1510,10 @@ class HandlerCore:
poezio_colored,
nickname=char)
except:
# Most of the time what gets logged is whitespace pings. Skip.
# And also skip tab updates.
if stanza.strip() != '':
return None
log.debug('', exc_info=True)
if isinstance(self.core.tabs.current_tab, tabs.XMLTab):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment