jesopo
|
abf5679b68
|
Parse sent data in IRCServer._send, not IRCServer.send
|
2019-02-10 20:49:03 +00:00 |
|
jesopo
|
89f035fdcf
|
Add IRCServer.hostmask() to construct our nick!user@host hostmask
|
2019-02-10 20:44:29 +00:00 |
|
jesopo
|
a3b9be3d3d
|
Shift encoding/truncating IRC lines to src/IRCLine.py
|
2019-02-10 18:43:04 +00:00 |
|
jesopo
|
bd9eaad0b2
|
Return truncted data from encode_truncate and hold it in IRCLine.Line
|
2019-02-10 18:16:19 +00:00 |
|
jesopo
|
7952d4c366
|
Make use of utils.truncate_encode, to avoid cutting utf8 sequences in half
|
2019-02-10 16:48:08 +00:00 |
|
jesopo
|
f2c762a2d0
|
add utils.truncate_encode , to encode and truncate a string while respecting utf8 multi-byte encoding
|
2019-02-10 16:41:56 +00:00 |
|
jesopo
|
b744281e3d
|
Don't send empty space with JOIN if key=="" (src/IRCServer.py)
|
2019-02-10 15:02:24 +00:00 |
|
jesopo
|
d62b8c79fd
|
Return IRCLine object from IRCServer.send() (and functions that call .send())
|
2019-02-10 14:21:14 +00:00 |
|
jesopo
|
8e03bc66af
|
fix self.batches type hint (src/IRCServer.py)
|
2019-02-10 14:20:40 +00:00 |
|
jesopo
|
eb00f331e5
|
IRCLine's data should be bytes
|
2019-02-10 14:19:43 +00:00 |
|
jesopo
|
4772564115
|
Add missing src/IRCLine.py file
|
2019-02-10 14:18:33 +00:00 |
|
jesopo
|
28107292f5
|
now isn't defined now that throttle code has been separated out (src/IRCServer.py)
|
2019-02-10 14:12:39 +00:00 |
|
jesopo
|
7792be247c
|
Track lines-to-be-sent up until they're completely sent, queue up more than 1
line at a time in write buffer if we've got space (src/IRCServer.py)
|
2019-02-10 14:09:27 +00:00 |
|
jesopo
|
7f7941f564
|
rename, 'IRCLine' -> 'IRCParsedLine' (utils.irc)
|
2019-02-10 14:08:59 +00:00 |
|
jesopo
|
23da45bebc
|
Make line cutoff character count a const (src/IRCServer.py)
|
2019-02-10 14:08:07 +00:00 |
|
jesopo
|
41503ab5ae
|
Add TimersContext.find_all
|
2019-02-10 13:01:52 +00:00 |
|
jesopo
|
7704de25b6
|
Add Timers.find_all, to find all timers of a certain name
|
2019-02-10 12:58:15 +00:00 |
|
jesopo
|
e558a7676b
|
Abstract ssl socket wrapping away so we can reuse it
|
2019-02-10 12:36:52 +00:00 |
|
jesopo
|
1d807fefe0
|
Old copypaste fail - we were returning the most recent user id when creating channels
(Database.py)
|
2019-02-10 00:04:00 +00:00 |
|
jesopo
|
b44c456081
|
Set default values for various types of channel modes (src/IRCServer.py)
|
2019-02-09 18:52:59 +00:00 |
|
jesopo
|
84a3bf6135
|
Also capture channel setting-related modes (e.g. +f for flood settings)
|
2019-02-09 18:48:18 +00:00 |
|
jesopo
|
d86a0fc55c
|
Return "0s" from utils.to_pretty_time when given 0 seconds
|
2019-02-07 22:47:03 +00:00 |
|
jesopo
|
bae98d1236
|
Send CAP LS after we send PASS (if applicable) (src/IRCServer.py)
|
2019-02-07 17:41:10 +00:00 |
|
jesopo
|
76fd67235a
|
Add optional default param to Exports.get_one() (src/Exports.py)
|
2019-02-07 13:36:34 +00:00 |
|
jesopo
|
e124b8e79d
|
Implement ExportsContext.get_one
|
2019-02-07 10:10:13 +00:00 |
|
jesopo
|
8c1c10b3c7
|
Implement Exports.get_one()
|
2019-02-07 10:02:27 +00:00 |
|
jesopo
|
f94f233eb3
|
Fix mypy typing issue with importspec loader Optionalness (src/ModuleManager.py)
|
2019-02-06 22:41:37 +00:00 |
|
jesopo
|
1895ac34d7
|
If a server has a hostname that's not an IP, use it as SNI server name
|
2019-02-06 18:11:19 +00:00 |
|
jesopo
|
70b29a345a
|
Don't break if we try to "finish" a waiting CAP when it's already finished
|
2019-02-06 15:44:09 +00:00 |
|
jesopo
|
2f7937adc5
|
Don't .lower() nicknames in Database.py, it doesn't know about IRC casemapping
|
2019-02-06 11:25:20 +00:00 |
|
jesopo
|
cbbe6f1569
|
STARTTLS was removed long ago
|
2019-02-05 22:26:41 +00:00 |
|
jesopo
|
5991e02b0a
|
Manually count ACK/NAK for REQed CAPs before ENDing CAP negotiation
|
2019-02-05 19:20:02 +00:00 |
|
jesopo
|
c311521a31
|
Switch to using __init__.py as main file of directory modules, so they behave
like a package (also put the modules manually in sys.modules
|
2019-02-05 15:53:11 +00:00 |
|
jesopo
|
607c6eddf9
|
Switch to a non-deprecated method of loading files by filename
(`importlib.util.spec_from_file_location`)
|
2019-02-05 13:34:13 +00:00 |
|
jesopo
|
5dda000c96
|
Add make_event(..) to EventHookContext
|
2019-01-30 19:37:52 +00:00 |
|
jesopo
|
72072bbd3d
|
Make sure to call the specific hook we've decided is valid (commands.py)
|
2019-01-30 19:35:43 +00:00 |
|
jesopo
|
d10a6d94c1
|
Add a way to force success and force failure of a command permission check
(commands.py)
|
2019-01-28 23:29:52 +00:00 |
|
jesopo
|
cc8478c50c
|
Only search messages from other users in find_from (src/IRCBuffer.py)
|
2019-01-26 15:58:57 +00:00 |
|
jesopo
|
e1e4fbf9bc
|
Add find_from to IRCBuffer.Buffer, to find the most recent line from a given
user (src/IRCBuffer.py)
|
2019-01-26 15:46:20 +00:00 |
|
jesopo
|
8dcd6b2937
|
Make sure more than one hook can catch preprocess.send but still respect any
that return a change to the output (src/IRCServer.py)
|
2019-01-26 11:05:25 +00:00 |
|
jesopo
|
1a24f17375
|
IRCServer.Server.irc_lower should have a return type hint of str
|
2019-01-24 17:15:02 +00:00 |
|
jesopo
|
3df6b39228
|
Typo, IRCServer.Server.irc_equal -> IRCServer.Server.irc_equals
|
2019-01-24 17:13:51 +00:00 |
|
jesopo
|
301dd7378a
|
Add irc_lower() and irc_equals() to IRCServer.Server so that no where else
in the code has to know about the server having a casemapping
|
2019-01-24 17:12:50 +00:00 |
|
jesopo
|
baeff58539
|
Fix incorrect indentation level in Logging.py
|
2019-01-18 16:28:09 +00:00 |
|
jesopo
|
69edf039b3
|
Support modules being in their own folder and move github.py to github/module.py
|
2019-01-18 12:49:11 +00:00 |
|
jesopo
|
4c5af0845c
|
output of len() needs to have a -1 on it when matching it against indexes
within the given string (src/utils/irc.py)
|
2019-01-16 12:42:45 +00:00 |
|
jesopo
|
2331205368
|
Don't ignore a color code when it's right at the end of a message
(src/utils/irc.py)
|
2019-01-16 12:41:41 +00:00 |
|
jesopo
|
470f85b009
|
Pushing logging on to another thread was a ridiculous idea. it means CRITICAL
logs are in a race condition to write to file before the main thread exits.
|
2019-01-16 12:03:56 +00:00 |
|
jesopo
|
6405ee2582
|
Support removal of modes without args that we don't know about in a way that
doesn't push code execution down the wrong path (src/IRCChannel.py)
|
2019-01-16 11:59:36 +00:00 |
|
jesopo
|
aa40936ce6
|
Support a mode being removed from a channel, without an arg, that we weren't yet
aware of (src/IRCChannel.py)
|
2019-01-16 11:47:42 +00:00 |
|