mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 21:22:36 +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):
|
def parse_irc_command(self, line):
|
||||||
"""Sends a command to the protocol module."""
|
"""Sends a command to the protocol module."""
|
||||||
log.debug("(%s) <- %s", self.name, line)
|
log.debug("(%s) <- %s", self.name, line)
|
||||||
|
if not line:
|
||||||
|
log.warning("(%s) Got empty line %r from IRC?", self.name, line)
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
hook_args = self.handle_events(line)
|
hook_args = self.handle_events(line)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
Reference in New Issue
Block a user