Commit graph

98 commits

Author SHA1 Message Date
jesopo
f9f637e084 Remove IRCSendBatch, fix some batch-related type hints 2019-06-02 10:13:51 +01:00
jesopo
dc284bab4a Only enable write throttling when _write_buffer is empty
closes #59
2019-05-31 15:49:34 +01:00
jesopo
367eb1c60e Make labeled-resposnes it's own module, tag and track every sent line 2019-05-30 15:36:10 +01:00
jesopo
58aea4b3b4 draft/labeled-response -> draft/labeled-response-0.2 2019-05-30 07:44:53 +01:00
jesopo
d225f08b9d labeled-response is not ratified yet 2019-05-29 17:54:43 +01:00
jesopo
b8f778d7bd Only try to send QUITs on ctrl+c when we're connected - sys.exit otherwise 2019-05-29 16:11:47 +01:00
jesopo
240faa03fb Move IRCv3 server-time code in to it's own module, save last @time tag 2019-05-29 15:52:21 +01:00
jesopo
3e8a31ba73 _match_caps takes 2 args 2019-05-24 05:47:01 +01:00
jesopo
e3d8063373 Check if a PRIVMSG/NOTICE is send *from* us before we check if it's sent *to* us
- so `user` isn't null when bitbot messages himself.
2019-05-22 14:23:38 +01:00
jesopo
4ce8d6b461 Pass server through FAIL events, use FAIL command as part of event path 2019-05-22 11:56:21 +01:00
jesopo
cf89e28019 Log calls need formatting arguments as a second arg 2019-05-22 11:56:05 +01:00
jesopo
29d5ab9b56 _handle takes a server param 2019-05-22 08:42:41 +01:00
jesopo
82e79ac4e5 there's no 1 index arg for a batch-end 2019-05-22 08:42:27 +01:00
jesopo
6a4852d2b4 server and tag var don't exist 2019-05-22 08:42:03 +01:00
jesopo
6d44db6065 Remove references to STATUSMSG - just pass around a raw target_str (target
without statusmsg chars stripped off)
2019-05-21 23:09:32 +01:00
jesopo
bdd161256d has_capability -> has_capability_str, add new has_capability 2019-05-20 16:33:32 +01:00
jesopo
c60094ea92 matched_caps is actually a str[] 2019-05-19 11:13:16 +01:00
jesopo
66ce2ee2b7 .copy() all the hardcoded Capabilities in line_handler/ircv3.py 2019-05-19 11:10:32 +01:00
jesopo
161c60c4f6 .lower() -> .upper() for CAP subcommands. makes a lot more sense. 2019-05-18 14:57:09 +01:00
jesopo
7547eee96d Catch server version string, from RPL_MYINFO 2019-05-15 17:12:21 +01:00
jesopo
d0573706e5 Move all actual nickname changing until AFTER events are fixed. it was actually
set_own_nickname that was really causing the issue.
2019-05-12 22:20:42 +01:00
jesopo
3e9d628d64 Change user nickname before firing (received/self).nick events 2019-05-12 22:07:04 +01:00
jesopo
d291cd5063 Revamp how CAPs are tracked through REQ and ACK/NAK etc 2019-05-11 18:22:40 +01:00
jesopo
295f7a751c Refactor CAPs in to objects 2019-05-11 15:11:09 +01:00
jesopo
5dd019d79f Handle dangling spaces at the end of a NAMES response 2019-05-09 11:55:35 +01:00
jesopo
511a1836bb Only split NAMES reply at literal space, .split() is overzealous 2019-05-09 11:31:58 +01:00
jesopo
f7eae1a978 Tokenize IRC data as soon as it comes out of IRCServer 2019-05-09 10:36:33 +01:00
jesopo
dc17ef7bb9 Only handle 324 when we're actually in the channel 2019-05-04 21:39:35 +01:00
jesopo
e12ad21c1a Add/remove people from channels before received.join/received.part events 2019-04-15 14:41:09 +01:00
jesopo
ad166a7d0a Correctly support SETNAME being targetted at us 2019-04-02 14:21:16 +01:00
jesopo
76ae55499b Log which server an ERROR came from 2019-03-19 10:26:15 +00:00
jesopo
5d7f017c9c Enum values shouldn't be all upper case 2019-03-10 13:14:25 +00:00
jesopo
1dad4827b6 Set a user's username/hostname/account BEFORE sending a received.join 2019-03-06 15:51:10 +00:00
jesopo
c876940443 Set username/hostname on users on JOIN regardless of whether we know theirs
already
2019-03-06 15:50:24 +00:00
jesopo
b4b15e5678 Don't treat ACTION CTCP as a different event to normal PRIVMSGs 2019-03-06 13:51:38 +00:00
jesopo
9e98754188 Treat our own user as a regular user throughout line_handler 2019-03-05 11:20:32 +00:00
jesopo
cf262c6d8a We need to import EventManager in line_handler/__init__.py 2019-03-03 23:34:39 +00:00
jesopo
2affba99ca Minor refactors across line_handler 2019-03-03 22:46:24 +00:00
jesopo
4aa9a06635 @utils.hook shouldn't be in line_handler/message.py 2019-03-03 22:45:54 +00:00
jesopo
7a3db82300 Add IRCServer.has_capability and use it throughout line_handler 2019-03-03 22:38:34 +00:00
jesopo
8c94bcf6ca Move utils.irc.IRCParsedLine to IRCLine.ParsedLine, improve truncation
mechanism, don't convert sent line from ParsedLine to text to ParsedLine for
line_handler handling
2019-02-23 21:33:04 +00:00
jesopo
6bdec003a1 Split PRIVMSG last param explicitly by " " to make message_split 2019-02-23 10:54:17 +00:00
jesopo
9d72cbca73 Keep track of a user's away message, not just whether they're away or not 2019-02-22 22:26:50 +00:00
jesopo
76c6cc3709 Typo, 'taget' -> 'target' 2019-02-22 16:31:17 +00:00
jesopo
5cae86333b Typo, 'channels' -> 'channel' 2019-02-22 11:27:31 +00:00
jesopo
2b430839f9 .on doesn't take kwargs - .call does 2019-02-22 11:26:48 +00:00
jesopo
6177d5c984 Typo, 'channels' -> 'channel' 2019-02-22 11:25:04 +00:00
jesopo
47c2cbb0fa Split line_handler.py out in to different files for different categories 2019-02-22 11:23:36 +00:00