From 74848853acb7d84f3bffb4b5fe90c9f265b869c9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 31 Jan 2018 19:32:39 -0800 Subject: [PATCH] clientbot: fix KeyError caused by lower() in spawn_server This affected connections to afternet for example. --- protocols/clientbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index a42bdb9..e0ce3dd 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -133,7 +133,6 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): """ STUB: Pretends to spawn a new server with a subset of the given options. """ - name = name.lower() if internal: # Use a custom pseudo-SID format for internal servers to prevent any server name clashes sid = self.sidgen.next_sid(prefix=name) @@ -645,7 +644,8 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): # Virtual endburst hook. self.connected.set() # Note, this should always be set before the actual ENDBURST hook - self.servers[self.uplink].has_eob = True + self.servers[source].has_eob = True + return {'parse_as': 'ENDBURST'} handle_422 = handle_376