From f970f760aaa1e072d560593beceaede830e4d5e3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 17 Jul 2016 23:10:10 -0700 Subject: [PATCH] clientbot: *untested* autopreform support --- protocols/clientbot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index f643cc4..b7ab89c 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -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):