jesopo
|
01ddc04bb9
|
fix hostmask_match_many type hinting
|
2019-06-20 17:58:49 +01:00 |
|
jesopo
|
b6e194a450
|
Implement hostmask_match_any, for more efficient matching of multiple hostmasks
|
2019-06-20 14:21:11 +01:00 |
|
jesopo
|
792a42be6e
|
Implement utils.irc.hostmask_match() as regex
|
2019-06-20 14:10:10 +01:00 |
|
jesopo
|
612c26ff7e
|
Differentiate between module "not found" and "not loaded"
|
2019-06-19 23:11:42 +01:00 |
|
jesopo
|
928f2f304d
|
Raise ModuleNotFoundException on failure to find_module()
|
2019-06-19 23:05:22 +01:00 |
|
jesopo
|
dc9cd2869f
|
Give requested module name to ModuleNotFoundException
|
2019-06-19 23:03:27 +01:00 |
|
jesopo
|
9457430c15
|
Add MessageTag.present, to see if a tag is present (even without value)
|
2019-06-19 22:36:42 +01:00 |
|
jesopo
|
938e1db963
|
add margin arg to ParsedLine.truncate so commands/outs.py doesn't do it
manually and cause potential issues with multi-byte chars
|
2019-06-19 10:34:42 +01:00 |
|
jesopo
|
c463fa20a4
|
line_formatted -> valid so tags don't cause us to subvert truncation
|
2019-06-18 18:14:04 +01:00 |
|
jesopo
|
1cbc2ce31b
|
Tags should not be appended to pieces now that they're counted separately
|
2019-06-18 17:56:20 +01:00 |
|
jesopo
|
aa4a15a6dc
|
Add IRCBot.URL (https://bitbot.dev)
|
2019-06-18 17:33:54 +01:00 |
|
jesopo
|
51cac7d9b5
|
add has_tag() and get_tag() to IRCLine.ParsedLine
|
2019-06-18 15:18:44 +01:00 |
|
jesopo
|
31be78db81
|
message-tags count for a different character limit than the rest of the line
|
2019-06-18 14:33:51 +01:00 |
|
jesopo
|
621830c360
|
Simplify SentLine by shifting truncation to ParsedLine (and commands.outs)
|
2019-06-18 14:14:37 +01:00 |
|
jesopo
|
133ff1c0f6
|
only count "\n"s (not "\r\n") that hit the wire, incase \r\n gets cut in half
|
2019-06-17 18:23:38 +01:00 |
|
jesopo
|
d4391cc6c5
|
Fix Database.ChannelSettings.find SQL
|
2019-06-17 17:51:27 +01:00 |
|
jesopo
|
5c325d9b23
|
'break' instead of 'continue' so that things in the event queue get discarded
|
2019-06-17 16:19:20 +01:00 |
|
jesopo
|
72ce880478
|
Only panic() when a server connection is part of bot init. closes #69
|
2019-06-17 14:20:11 +01:00 |
|
jesopo
|
9121a868a8
|
Make sure we exit event loop when there's no servers left
|
2019-06-17 14:07:06 +01:00 |
|
jesopo
|
dbe0b1f43b
|
Tell servers objects when they are the result of a reconnection
|
2019-06-17 13:53:17 +01:00 |
|
jesopo
|
ec733e200c
|
Default IRCBot.running to false, set to true at the top of .run()
|
2019-06-17 11:35:45 +01:00 |
|
jesopo
|
da5d48400d
|
Change panic() reason log from ERROR to CRITICAL
|
2019-06-17 11:12:04 +01:00 |
|
jesopo
|
9ea356bc49
|
Raise a BitBotPanic() exception in panic()
|
2019-06-17 11:11:35 +01:00 |
|
jesopo
|
f8fa529ca5
|
Add IRCBot.panic() - a nicer interface for killing the whole application
|
2019-06-17 11:06:03 +01:00 |
|
jesopo
|
ced59a0f74
|
Allow channel-access and channel-mode check for channels people are not in
|
2019-06-16 20:48:31 +01:00 |
|
jesopo
|
18004c23e1
|
Don't fail get_kwarg when self.kwarg[name] is falsey
|
2019-06-16 18:39:56 +01:00 |
|
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 |
|