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:
parent
083dc6a58f
commit
c8ba6291a6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user