jesopo
|
5fa3d66a39
|
Return all caps through received.cap.ls|new and check if valid in line_handler,
remove server.cap_started
|
2019-06-16 15:33:20 +01:00 |
|
jesopo
|
919a488e86
|
Implement client-to-server BATCHes
|
2019-06-16 09:52:54 +01:00 |
|
jesopo
|
055eed24fd
|
Type annotate ParsedLine.tags, add ParsedLine.add_tag()
|
2019-06-16 09:52:25 +01:00 |
|
jesopo
|
8ab4880c5c
|
Change from yield checks to a func in events that pass up EventErrors
|
2019-06-15 18:42:14 +01:00 |
|
jesopo
|
b5a467552f
|
CRITICAL log exceptions caught in _loop_catch()
|
2019-06-15 00:39:52 +01:00 |
|
jesopo
|
e0d99fe8b1
|
Fix utils.Check args type hinting
|
2019-06-14 12:12:38 +01:00 |
|
jesopo
|
f05fc209b0
|
Add a way to __or__ utils.Check s, as a "if one of these passes" thing
|
2019-06-14 12:01:55 +01:00 |
|
jesopo
|
d7fa2cfa24
|
Catch yield s in command callbacks for e.g. permission checks
|
2019-06-14 11:42:12 +01:00 |
|
jesopo
|
0e5ba747a9
|
Wrap _read_loop() and _write_loop() in a try that kills the main thread
|
2019-06-13 17:11:46 +01:00 |
|
jesopo
|
795f6afbeb
|
Mode mode (and mode arg) parsing to IRCChannel.py, add IRCChannel.mode_str
|
2019-06-13 11:53:47 +01:00 |
|
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
|
512d844a5a
|
Update CHANGELOG, v1.9.2 release
|
2019-06-09 17:34:45 +01:00 |
|
jesopo
|
a31793c851
|
Put responsbility of self.running = False on to the event loop
|
2019-06-09 14:59:28 +01:00 |
|
jesopo
|
e28a8d91ab
|
IRCServer.statusmsg type hint
|
2019-06-08 12:10:14 +01:00 |
|
jesopo
|
55fb9cee3b
|
v1.9.1 release
|
2019-06-08 11:03:18 +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
|
37c74da0f8
|
v1.9.0 release
|
2019-06-07 17:13:53 +01:00 |
|
jesopo
|
f822345976
|
Merge branch 'master' into feature/write-thread
|
2019-06-07 15:07:31 +01:00 |
|
jesopo
|
accd7a8941
|
Logging._log()'s params arg should be typing.Optiona[]
|
2019-06-07 13:35:20 +01:00 |
|
jesopo
|
ea924df883
|
typehint for IRCBuffer._lines
|
2019-06-07 13:34:30 +01:00 |
|
jesopo
|
bc4a6debb5
|
Use a deque for temp chathistory storage (src/IRCBuffer.py)
|
2019-06-07 13:31:51 +01:00 |
|
jesopo
|
38a41a6404
|
We need to wait for _check to finish so read/writes can be triggered correctly
|
2019-06-07 11:05:55 +01:00 |
|
jesopo
|
09fbbae5e3
|
"send" event on SentLines should be run on the main thread
|
2019-06-07 11:05:43 +01:00 |
|
jesopo
|
b3b4d07e63
|
Call _check *after* read epoll call - to make sure timeouts are hit accurately
|
2019-06-07 10:39:31 +01:00 |
|
jesopo
|
f3b6d6df0a
|
Switch to using threading.Condition to trigger write thread
|
2019-06-07 10:39:19 +01:00 |
|
jesopo
|
1f1b63ea6d
|
Checking if we should enable write buffer should be in _fill_throttle()
|
2019-06-07 08:02:22 +01:00 |
|
jesopo
|
c89bd74a48
|
select.poll, as opposed to select.epoll, uses milliseconds not seconds for
timeout
|
2019-06-06 23:45:33 +01:00 |
|
jesopo
|
23d2993b9f
|
Remove debug print
|
2019-06-06 23:25:03 +01:00 |
|
jesopo
|
6d44f12193
|
Use .trigger (without triggering read/write threads) to call _check
|
2019-06-06 23:23:46 +01:00 |
|
jesopo
|
24ca7ed97f
|
use trigger_write() instead of a raw .send(b"")
|
2019-06-06 23:19:57 +01:00 |
|
jesopo
|
ef0c2c65e0
|
use _event_queue for _check, don't .disconnect() from outside of respective
loops
|
2019-06-06 22:36:56 +01:00 |
|
jesopo
|
ae6c65d743
|
remove _trigger_function code, it's not used any more
|
2019-06-06 21:43:21 +01:00 |
|
jesopo
|
d9de4fdec2
|
Lambda scopes are irritating
|
2019-06-06 21:03:25 +01:00 |
|
jesopo
|
539bebafea
|
select.epoll -> select.poll
|
2019-06-06 20:26:05 +01:00 |
|
jesopo
|
0f7b040165
|
call timer callbacks and expire cach objects on main thread
|
2019-06-06 20:22:56 +01:00 |
|
jesopo
|
5b7d8dea91
|
Only trigger read/write threads once
|
2019-06-06 19:21:18 +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
|
35b97f836a
|
Merge branch 'master' into feature/write-thread
|
2019-06-06 17:20:30 +01:00 |
|
jesopo
|
59eeee1030
|
message-tags are joined by ";", not ","
|
2019-06-06 17:19:27 +01:00 |
|
jesopo
|
a1ebe8035e
|
Split read/write/process in to 3 different threads
|
2019-06-06 17:05:44 +01:00 |
|
jesopo
|
2ca4fd48f7
|
Make params arg for logging functions optional
|
2019-06-06 12:59:47 +01:00 |
|
jesopo
|
eb7d90bb00
|
message_tag_escape() message-tag values when .format()ing IRCLine
|
2019-06-06 09:29:17 +01:00 |
|
jesopo
|
8fe5098739
|
Make 'circular dependency' WARN more explicitly about 1-to-1 dependencies
|
2019-06-05 19:13:44 +01:00 |
|
jesopo
|
67b4aa69e2
|
check_purge() after removing a context as it could make a hook purgable
|
2019-06-05 16:56:02 +01:00 |
|
jesopo
|
2d46fe0cbf
|
labels: Use BatchType to match, pass lines not line , batch ID isn't a label,
fire event on label response
|
2019-06-04 17:54:19 +01:00 |
|
jesopo
|
2470c1ec03
|
Add new BatchType object, to match like how Capability and MessageTag do
|
2019-06-04 17:51:55 +01:00 |
|