jesopo
|
8135f871c3
|
Change send_*() function return hints to be typing.Optional
|
2019-06-10 15:02:03 +01:00 |
|
jesopo
|
6c5dc958d0
|
Add .assure() to ParsedLine, to make it immune from .valid()
|
2019-06-10 10:45:02 +01:00 |
|
jesopo
|
0fc03fd592
|
Allow preprocess.send callbacks to request a line not be sent at all
|
2019-06-10 10:11:31 +01:00 |
|
jesopo
|
e28a8d91ab
|
IRCServer.statusmsg type hint
|
2019-06-08 12:10:14 +01:00 |
|
jesopo
|
d4ba98307f
|
We should look at ISUPPORT's STATUSMSG token instead of PREFIX
|
2019-06-08 10:59:52 +01:00 |
|
jesopo
|
16b9361371
|
Only request a CAP once. closes #66
|
2019-06-08 10:17:13 +01:00 |
|
jesopo
|
09fbbae5e3
|
"send" event on SentLines should be run on the main thread
|
2019-06-07 11:05:43 +01:00 |
|
jesopo
|
05fcb33ff7
|
print lines as soon as they're read, don't wait for _post_send
|
2019-06-06 19:15:34 +01:00 |
|
jesopo
|
f96378ac07
|
move immediate-write-trigger to IRCServer.py, trigger _event_loop for
running=False
|
2019-06-06 17:58:35 +01:00 |
|
jesopo
|
a1ebe8035e
|
Split read/write/process in to 3 different threads
|
2019-06-06 17:05:44 +01:00 |
|
jesopo
|
8dbae6a5e9
|
Give SentLine (and preproc.send events) a new event object, to track events
related to a line after it is sent
|
2019-06-04 17:51:20 +01:00 |
|
jesopo
|
3ac01197f2
|
Send PING and PONG as 'immediate' lines
|
2019-06-04 14:31:34 +01:00 |
|
jesopo
|
4a4d0a37d7
|
Only return definitely-writen lines from IRCSocket._send, refactor in prep for
lines that request to be sent 'immediately'
|
2019-06-04 14:28:35 +01:00 |
|
jesopo
|
5204ac3300
|
fix some CAP related type hints
|
2019-06-02 10:14:09 +01:00 |
|
jesopo
|
f9f637e084
|
Remove IRCSendBatch, fix some batch-related type hints
|
2019-06-02 10:13:51 +01:00 |
|
jesopo
|
c3454f2bfe
|
available_capability returns str - fix type hint for this
|
2019-06-01 15:02:38 +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
|
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
|
768059fcf4
|
Switch resume.py to use the last server-time it saw, not last .recv()
|
2019-05-29 15:53:20 +01:00 |
|
jesopo
|
ab1074cf4d
|
Remove mention of ipv4 - detect address family automatically
|
2019-05-21 10:11:09 +01:00 |
|
jesopo
|
bdd161256d
|
has_capability -> has_capability_str , add new has_capability
|
2019-05-20 16:33:32 +01:00 |
|
jesopo
|
3ad83655d5
|
ParsedLine already deals with preventing newlines
|
2019-05-20 16:19:37 +01:00 |
|
jesopo
|
c607a0e67c
|
Implement utils.irc.hostmask_match for glob-like hostmask matching
|
2019-05-19 16:24:38 +01:00 |
|
jesopo
|
7547eee96d
|
Catch server version string, from RPL_MYINFO
|
2019-05-15 17:12:21 +01:00 |
|
jesopo
|
d291cd5063
|
Revamp how CAPs are tracked through REQ and ACK/NAK etc
|
2019-05-11 18:22:40 +01:00 |
|
jesopo
|
f7eae1a978
|
Tokenize IRC data as soon as it comes out of IRCServer
|
2019-05-09 10:36:33 +01:00 |
|
jesopo
|
920dce0221
|
Add IRCServer.has_user_id, to check if we've seen a user before
|
2019-05-05 00:16:37 +01:00 |
|
jesopo
|
032f6fbc3b
|
IRCServer.alias is no longer optional
|
2019-04-24 11:45:21 +01:00 |
|
jesopo
|
87340bcbf9
|
change utils.iso8601_format to default to no milliseconds, switch to using
utils.iso8601 functions in badges.py
|
2019-04-23 21:27:43 +01:00 |
|
jesopo
|
ee8c7813f7
|
Add IRCServer.send_raw so modules don't have to parse messages before sending
them
|
2019-04-16 13:47:45 +01:00 |
|
jesopo
|
91c2ab03ba
|
add IRCServer.send_enabled, to prevent sending after QUIT in signals.py
|
2019-03-05 11:29:46 +00:00 |
|
jesopo
|
7a3db82300
|
Add IRCServer.has_capability and use it throughout line_handler
|
2019-03-03 22:38:34 +00:00 |
|
jesopo
|
8d55319f56
|
Rename IRCLine.Line to IRCLine.SentLine, for clarity
|
2019-02-24 08:25:12 +00:00 |
|
jesopo
|
1473f41b03
|
Fire preprocess.send per-command - use this to only strip colors from ParsedLine
objects for PRIVMSG and NOTICE
|
2019-02-23 21:40:11 +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
|
8b54046ca4
|
Add target typehint on IRCServer.send_tagmsg, add send_tagmsg to IRCChannel/IRCUser
|
2019-02-22 22:34:54 +00:00 |
|
jesopo
|
deedab7248
|
Add IRCServer.send_joins, a nicer interface than manually ",".join ing
|
2019-02-20 17:08:30 +00:00 |
|
jesopo
|
577fae7cea
|
Don't pass None around as tag default, fix some missing return type args
|
2019-02-19 15:57:00 +00:00 |
|
jesopo
|
81ae0cc889
|
Add make_batch and send_batch to IRCServer
|
2019-02-18 23:16:47 +00:00 |
|
jesopo
|
186b6b82a2
|
Shift formatting protocol data to it's own file: utils.irc.protocol
|
2019-02-18 14:58:27 +00:00 |
|
jesopo
|
cb0314da67
|
Put a helper function in utils to do iso8601 formatting. change IRCServer's
last-read setting to use it.
|
2019-02-17 14:15:40 +00:00 |
|
jesopo
|
be495344d4
|
How did this newline get here
|
2019-02-17 12:40:31 +00:00 |
|
jesopo
|
716568c21d
|
'src/IRCServer.capabilities' -> 'src/IRCServer.agreed_capabilities'
|
2019-02-16 09:12:43 +00:00 |
|
jesopo
|
23b0e58665
|
Send CAP REQ in 10-item chunks (src/IRCServer.py)
|
2019-02-16 08:21:42 +00:00 |
|
jesopo
|
ed99d66163
|
Don't add a space after a formatted tagmsg in _tag_str (src/IRCServer.py)
|
2019-02-14 21:59:26 +00:00 |
|
jesopo
|
8d97e51bf3
|
Add IRCServer.send_tagmsg, to send TAGMSG commands
|
2019-02-14 21:36:59 +00:00 |
|
jesopo
|
86bc49a0a1
|
Only put a ":" on trailing args when it's required
|
2019-02-12 13:55:57 +00:00 |
|
jesopo
|
144182868c
|
Upgrade resume.py to draft/resume-0.3 and support sending last-read timestamp
|
2019-02-12 11:14:36 +00:00 |
|
jesopo
|
b37a50ed7a
|
IRCServer should handle ping_sent, not IRCSocket
|
2019-02-11 21:23:52 +00:00 |
|
jesopo
|
a8d9365442
|
last_read/last_send is now handled by IRCSocket.py
|
2019-02-11 20:49:53 +00:00 |
|