3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

clientbot: *untested* autopreform support

This commit is contained in:
James Lu 2016-07-17 23:10:10 -07:00
parent 8fb3310d33
commit f970f760aa

View File

@ -222,6 +222,11 @@ class ClientbotWrapperProtocol(Protocol):
# TODO: capability negotiation happens here
if not self.irc.connected.is_set():
self.irc.connected.set()
# Run autoperform commands.
for line in self.irc.serverdata.get("autoperform", []):
self.irc.send(line)
return {'parse_as': 'ENDBURST'}
def handle_353(self, source, command, args):