From beccbdd04a3e44e22ac16173b1b456cd6f4e1553 Mon Sep 17 00:00:00 2001 From: Joshua Salzedo Date: Mon, 3 Feb 2020 20:25:18 -0800 Subject: [PATCH] #134 ignore strictly invalid null nickname --- pydle/features/rfc1459/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pydle/features/rfc1459/client.py b/pydle/features/rfc1459/client.py index 077692e..f83957f 100644 --- a/pydle/features/rfc1459/client.py +++ b/pydle/features/rfc1459/client.py @@ -923,6 +923,9 @@ async def on_raw_353(self, message): safe_entry = entry.lstrip(''.join(self._nickname_prefixes.keys())) # Parse entry and update database. nick, metadata = self._parse_user(safe_entry) + if not nick: + # nonsense nickname + continue self._sync_user(nick, metadata) # Get prefixes.