mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
clientbot: fix KeyError caused by lower() in spawn_server
This affected connections to afternet for example.
This commit is contained in:
parent
84f6190478
commit
74848853ac
@ -133,7 +133,6 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
"""
|
"""
|
||||||
STUB: Pretends to spawn a new server with a subset of the given options.
|
STUB: Pretends to spawn a new server with a subset of the given options.
|
||||||
"""
|
"""
|
||||||
name = name.lower()
|
|
||||||
if internal:
|
if internal:
|
||||||
# Use a custom pseudo-SID format for internal servers to prevent any server name clashes
|
# Use a custom pseudo-SID format for internal servers to prevent any server name clashes
|
||||||
sid = self.sidgen.next_sid(prefix=name)
|
sid = self.sidgen.next_sid(prefix=name)
|
||||||
@ -645,7 +644,8 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
|
|
||||||
# Virtual endburst hook.
|
# Virtual endburst hook.
|
||||||
self.connected.set() # Note, this should always be set before the actual 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'}
|
return {'parse_as': 'ENDBURST'}
|
||||||
|
|
||||||
handle_422 = handle_376
|
handle_422 = handle_376
|
||||||
|
Loading…
Reference in New Issue
Block a user