Commit Graph

64 Commits

Author SHA1 Message Date
jesopo 5a85e53485 channel.list_modes should always have keys, even if empty
closes #1
2020-09-29 11:55:15 +00:00
jesopo e062b7b71f +kli are not list modes 2020-09-29 11:54:50 +00:00
jesopo c841d1d6dd some test numerics were missing args 2020-09-29 11:44:45 +00:00
jesopo 07ed0bf13c WHOX IP must parse correctly (and we'll compress them) 2020-09-29 11:02:07 +00:00
jesopo ca9abfc34b fix tests for casefolding now that we've swapped ^ and ~ 2020-08-17 17:00:37 +00:00
jesopo 2c1468295e simplify parsing channel MODE & RPL_CHANNELMODEIS 2020-08-03 21:03:45 +00:00
jesopo 8a31f0190d save numeric ip result from WHOX 2020-07-12 23:16:33 +01:00
jesopo 2fb81e7aef parse out RPL_BANLIST and RPL_QUIETLIST 2020-07-11 15:36:21 +01:00
jesopo 9806a6407b pull server from WHO and WHOX 2020-07-09 11:04:44 +01:00
jesopo 01d8b8d111 remove probably copy-pasted CHGHOST from UserTestWHOIS 2020-07-08 23:42:23 +01:00
jesopo 50a63ce12c parse out RPL_AWAY 2020-07-07 14:27:40 +01:00
jesopo 74490f616a pull away state out of WHO/WHOX 2020-07-06 20:53:09 +01:00
jesopo ea421f09af pass around nickname/channelname as Name objects, give to ChannelUser 2020-06-21 18:43:55 +01:00
jesopo fdcf216255 rename isupport.chanmodes groups 2020-06-21 00:08:43 +01:00
jesopo 40839c1755 change how channel mode emit.tokens works ("+b" -> "+b mask") 2020-06-14 19:47:52 +01:00
jesopo e7d14e6f67 add user.hostmask():str and user.userhost():Optional[str] 2020-06-03 21:30:05 +01:00
jesopo 56d047de8d switch datetimes to pendulum because stdlib doesnt handle timezones well 2020-05-07 08:38:24 +10:00
jesopo 271cadf666 use utcfromtimestamp for unit test datetimes. timezones are hard 2020-05-05 22:45:34 +01:00
jesopo d0a3aed19f support RPL_LOGGEDIN and RPL_LOGGEDOUT (with tests) 2020-04-29 14:48:03 +01:00
jesopo 31ab106e25 only return 1 emit (or None) 2020-04-22 17:58:28 +01:00
jesopo db9c6d48d1 user.channels is now Set[str], CUser has no .user/.channel now 2020-04-21 20:35:17 +01:00
jesopo 79ee3d8874 rename channel users on NICK 2020-04-21 15:36:06 +01:00
jesopo 959b288b3c store channel membership on Channel and User objects, change tests 2020-04-21 14:28:04 +01:00
jesopo 985d800982 add test case for WHOX without account 2020-04-20 13:54:20 +01:00
jesopo 0d9f8dd268 add WHOX support, add tests for WHO and WHOX 2020-04-19 02:12:04 +01:00
jesopo f705f20e94 add unit tests for MODE emits 2020-04-10 16:05:25 +01:00
jesopo 5f62d22076 update tests for 211/221 typo 2020-04-08 17:20:05 +01:00
jesopo 048ae4252e make CAP tokens without "=value" be key:"", avoiding None checks 2020-04-02 17:17:09 +01:00
jesopo c7b4eb7a32 server.caps->server.available_caps (now {} by default, add self.has_cap) 2020-04-01 22:41:15 +01:00
jesopo 35b2e46945 change Emits to just be one object 2020-03-19 11:28:44 +00:00
jesopo 9e73252a8e "emit" important attributes from parsing tokens (who sent it, where, etc) 2020-03-18 15:59:42 +00:00
jesopo 3d3759218d add 005: network, statusmsg, callerid, invex, excepts, monitor, watch, whox 2020-03-16 00:38:14 +00:00
jesopo 628b79cb92 ctor Users with nickname_lower, add tests for NICK casefold 2020-03-15 23:53:21 +00:00
jesopo 3e55f39bb7 test nicknames being casefolded on JOIN 2020-03-15 23:28:04 +00:00
jesopo d8e4909017 casemap_lower() -> casefold(), casemap_equals() -> casefold_equals() 2020-03-15 23:16:06 +00:00
jesopo b089e8b6f6 add ISUPPORT CASEMAPPING tests, fallback to rfc1459 on unknown 2020-03-15 23:12:34 +00:00
jesopo af34486711 add support for casemappings (using 005 CASEMAPPING) 2020-03-15 23:05:42 +00:00
jesopo 097df312b4 add tests for ISUPPORT (005) 2020-03-15 22:43:33 +00:00
jesopo a379539af3 add tests for PREFIX channel modes 2020-03-15 21:11:44 +00:00
jesopo 40de45e068 support userhost-in-names, support MODE for PREFIX modes 2020-03-15 20:29:39 +00:00
jesopo 5af787bb56 handle IRCv3 account-notify 2020-03-15 19:40:50 +00:00
jesopo 3bebb384cc support IRCv3 extended-join 2020-03-15 19:32:23 +00:00
jesopo 8e24e46493 add SETNAME support 2020-03-13 13:18:27 +00:00
jesopo ccfd416867 support AWAY against ourself too 2020-03-13 13:13:28 +00:00
jesopo 9617919eb1 add AWAY support 2020-03-13 13:08:58 +00:00
jesopo 34293b261e add RPL_WHOISUSER (311) support 2020-03-13 11:23:54 +00:00
jesopo 0db0a5715e Revert "server.caps shouldn't be None before cap_ls, add bool server.cap_ls for this"
This reverts commit 04c8fd8aeb.
2020-03-13 11:10:46 +00:00
jesopo 04c8fd8aeb server.caps shouldn't be None before cap_ls, add bool server.cap_ls for this 2020-03-13 11:08:13 +00:00
jesopo e8d4f24238 add CAP LS/ACK/NEW/DEL support 2020-03-13 10:56:48 +00:00
jesopo 782ec2f921 add CHGHOST support 2020-03-13 10:19:51 +00:00