3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

parse_irc_command: ignore empty IRC lines

I seem to be getting this on my InspIRCd 2 test server?
This commit is contained in:
James Lu 2019-09-10 19:46:28 -07:00
parent 083dc6a58f
commit c8ba6291a6

View File

@ -2000,6 +2000,10 @@ class IRCNetwork(PyLinkNetworkCoreWithUtils):
def parse_irc_command(self, line):
"""Sends a command to the protocol module."""
log.debug("(%s) <- %s", self.name, line)
if not line:
log.warning("(%s) Got empty line %r from IRC?", self.name, line)
return
try:
hook_args = self.handle_events(line)
except Exception: