From 47223c257c48bea8b72cfe3d3e7b98859700e268 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 19 Apr 2020 02:23:00 +0100 Subject: [PATCH] remove commented-out proof of concept auto-join stuff --- ircrobots/join_info.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/ircrobots/join_info.py b/ircrobots/join_info.py index ab4cf01..2d0f238 100644 --- a/ircrobots/join_info.py +++ b/ircrobots/join_info.py @@ -5,29 +5,6 @@ from ircstates.numerics import * from .contexts import ServerContext from .matching import Response, ResponseOr, ParamAny, ParamFolded -""" -class JoinContext(ServerContext): - async def enlighten(self, channels: List[str]): - folded = [self.server.casefold(c) for c in channels] - waiting = len(folded) - while waiting: - line = await self.server.wait_for(ResponseOr( - Response("JOIN", [ParamAny()]) - )) - - if (line.command == "JOIN" and - self.server.casefold(line.params[0]) in folded): - waiting -= 1 - - for channel in folded: - await self.server.send(build("WHO", [channel])) - line = await self.wait_for( - Response(RPL_ENDOFWHO, [ParamAny(), ParamFolded(channel)]) - ) - - return [self.server.channels[c] for c in folded] -""" - class WHOContext(ServerContext): async def ensure(self, channel: str): folded = self.server.casefold(channel)