Commit Graph

290 Commits

Author SHA1 Message Date
jesopo 1bfe06d2ea implement STS policies; we're not parsing them yet though 2020-04-19 21:51:33 +01:00
jesopo de4ba754e7 update ircstates to v0.9.3 2020-04-19 14:14:45 +01:00
jesopo c4019e6242 set future on awaited self.send() after we've processed for session state 2020-04-19 13:11:06 +01:00
jesopo 47223c257c remove commented-out proof of concept auto-join stuff 2020-04-19 02:23:00 +01:00
jesopo 5618028b7b v0.1.1 release 2020-04-19 02:19:45 +01:00
jesopo ebef439e0a grab WHO on JOIN but make sure we only do one at once 2020-04-19 02:19:19 +01:00
jesopo d15e9ee361 `Numeric` doesn't exist anymore 2020-04-19 01:32:55 +01:00
jesopo 1f63270dda update ircstates to 0.9.1 2020-04-19 00:56:40 +01:00
jesopo a187dd2175 SASL auth text should be wrapped at 400 bytes 2020-04-19 00:56:24 +01:00
jesopo a48a0dedd9 add missing Responses import on server.py 2020-04-19 00:56:01 +01:00
jesopo bf68b6cb75 ah oops, the bindhost port was a test value that got committed 2020-04-19 00:55:32 +01:00
jesopo 7232876a75 update ircstates to v0.9.0, use const RPL/ERR vars 2020-04-17 21:06:20 +01:00
jesopo 2d67587938 fix sed index stuff, make host/nick/chan argparse args 2020-04-17 00:22:41 +01:00
jesopo a51f389b91 add example factoid bot 2020-04-17 00:05:54 +01:00
jesopo 290bcaedfd add VERSION 2020-04-16 14:20:40 +01:00
jesopo 624ffe2cf8 add py.typed 2020-04-16 14:20:16 +01:00
jesopo 0e2a2bcd00 create a fake echo-message when we have not CAP negotiated echo-message 2020-04-15 21:10:24 +01:00
jesopo b88fa51907 should be checking `self.hostname`, not `self.hostmask` (func pointer!) 2020-04-15 21:10:02 +01:00
jesopo 68054eacd5 support PASS from ConnectionParams 2020-04-13 19:10:02 +01:00
jesopo 8656f63d09 support labeled-response (but don't REQ it yet) 2020-04-13 18:23:05 +01:00
jesopo bd424d11ff Future[Line], not Awaitable[Line] in self._wait_for 2020-04-13 17:32:39 +01:00
jesopo cb3439e674 also match wait_fors that were in progress when a new one was triggered 2020-04-13 17:30:14 +01:00
jesopo 7cb2457136 add util functions to join a channel and whois a user 2020-04-12 13:54:27 +01:00
jesopo a44d77af6d update ircstates to 0.8.8 2020-04-12 13:54:10 +01:00
jesopo d571ad7ff9 self.recv() can return an empty array 2020-04-12 13:53:39 +01:00
jesopo 923809ab43 add async_stagger reference for backported happy eyeballs open_connection 2020-04-11 11:33:53 +01:00
jesopo c4009e1c07 on ERR_SASLFAIL, pop from matches 2020-04-10 21:37:26 +01:00
jesopo 3700ba4ab6 on RPL_SASLMECHS, we should still wait_for the ERR_SASLFAIL after it 2020-04-10 21:36:17 +01:00
jesopo 5da82e7d66 check for PLAIN should use `match[0]` not `match` 2020-04-10 21:36:03 +01:00
jesopo a546a468b7 remove premature import for future work 2020-04-09 11:12:02 +01:00
jesopo 85ee8e95e0 WHO ourselves on 001 to get our realname 2020-04-09 11:09:44 +01:00
jesopo 9f832df2f1 allow Numerics() with `params` use NUMERICS list from ircstates 2020-04-09 11:09:15 +01:00
jesopo 9265fd0c48 remove py3.6 .travis.yml target - i think we'll be 3.7-or-above 2020-04-06 13:33:00 +01:00
jesopo 985e95c37d remove duplicate "Server" in examples/sasl.py 2020-04-06 13:28:16 +01:00
jesopo fb99d97bca add anyio to requirements.txt 2020-04-06 13:24:38 +01:00
jesopo 179a2ca93a refactor TCP logic in to ITCPTransport (we can mock this for unittests) 2020-04-06 13:22:17 +01:00
jesopo 750fbd8acc comment about why server CAP/USER/NICK send() calls are not awaited 2020-04-05 23:57:02 +01:00
jesopo 730fef38f3 server.send() should be sync and return a Future - no nead for double await 2020-04-05 23:54:57 +01:00
jesopo 899d4821f0 add asyncs.MaybeAwait() - optionally awaitable coroutines 2020-04-05 23:37:54 +01:00
jesopo 72dc3ebd04 Bot does not have line_read()/line_send() any more 2020-04-05 17:47:02 +01:00
jesopo 84b374f43d FoldString -> ParamFolded 2020-04-05 17:40:22 +01:00
jesopo d837529698 next_line() doesn't need `wait_for` param 2020-04-05 17:22:33 +01:00
jesopo 423623fec1 add a Response subclass just to take RPL_/ERR_ names along with params 2020-04-05 17:16:19 +01:00
jesopo 0829fd9499 refactor and simplify normal reading vs wait_for 2020-04-05 17:11:04 +01:00
jesopo b8ddc6883d oops; add missing return statement from server.send 2020-04-05 13:19:19 +01:00
jesopo 1c7caf9039 use Server.registerd to detect handshake CAP LS; handle non-handshake CAP LS 2020-04-05 13:18:23 +01:00
jesopo 2a9d658207 return Future from `async send()` to *optionally* wait for it to hit the wire 2020-04-05 13:17:53 +01:00
jesopo e470d57780 pass IServer to Response so we can have FoldString (match with casefold rules) 2020-04-05 13:00:13 +01:00
jesopo f70932ac44 move more CAP related stuff to CAPContext 2020-04-05 12:48:29 +01:00
jesopo afe9ec359d update ircstates to 0.8.2 2020-04-05 12:47:19 +01:00