Commit graph

2210 commits

Author SHA1 Message Date
jesopo
d087143a5d Iterate through bot.servers.values(), not .keys() (admin.py) 2019-02-10 23:54:31 +00:00
jesopo
fadd21c6d9 Add !shutdown (admin.py) 2019-02-10 23:53:33 +00:00
jesopo
1d48f6f19d Add _char_limit return type hint, fix decoded_data return type hint
(src/IRCLine.py)
2019-02-10 23:52:25 +00:00
jesopo
ecb197858e Import IRCServer in IRCLine so type hint comment is valid (src/IRCLine.py) 2019-02-10 23:51:28 +00:00
jesopo
f8e6a55ada Add a comment as to why IRCLine's LINE_CUTOFF is 470, not 510 2019-02-10 22:52:23 +00:00
jesopo
fc5ade7112 Change LINE_CUTOFF to 470, now that we compute max char counts (src/IRCLine.py) 2019-02-10 20:54:12 +00:00
jesopo
bb4ec082dd Let IRCLine.Line handle truncating command output 2019-02-10 20:49:59 +00:00
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
9ecec75828 'jesopo pushed commit to master' -> 'jesopo pushed to master' (github) 2019-02-10 15:09:20 +00:00
jesopo
9235d23350 Show when pushes are forced (github) 2019-02-10 15:06:26 +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
af3057dee0 Don't send empty JOIN when we have no saved channels (channel_save.py) 2019-02-10 14:55:46 +00:00
jesopo
cf64e8832b Make use of "when line sent" logic to disconnect after QUIT (signals.py) 2019-02-10 14:32:04 +00:00
jesopo
709365ecf8 Utilise new line-tracking logic to reconnect when QUIT sends (admin.py) 2019-02-10 14:26: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
d5bb3c5405 Have to refer to timer.kwargs to get kwargs (in.py) 2019-02-10 13:27:49 +00:00
jesopo
25096c651a Don't require client cert validation (rest_api.py) 2019-02-10 13:26:35 +00:00
jesopo
985f4d60a4 Only add a waiting clause for resume CAP if the server actually ACKs it
(resume.py)
2019-02-10 13:22:53 +00:00
jesopo
c7d21e2d9e Typo, 'wrap_scket' -> 'ssl_wrap' (rest_api.py) 2019-02-10 13:20:22 +00:00
jesopo
93dd75ff31 Added !inlist, to list !in reminders (in.py) 2019-02-10 13:18:25 +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
1d206fe78f Use newly abstracted away ssl_wrap (rest_api.py) 2019-02-10 12:38:53 +00:00
jesopo
e558a7676b Abstract ssl socket wrapping away so we can reuse it 2019-02-10 12:36:52 +00:00
jesopo
05ae25d3d7 ERROR log ERRORs from servers (line_handler.py) 2019-02-10 12:22:01 +00:00
jesopo
71eac9d3c0 Treat a QUIT from hostmask :* as referring to our connection (line_handler.py) 2019-02-10 00:29:22 +00:00
jesopo
ffdf49efc9 CAP END for RESUME TOKEN and RESUME ERR, don't for RESUME SUCCESS (resume.py) 2019-02-10 00:12:45 +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
20d75e9716 Send request to RESUME a session AFTER we have a new token (resume.py) 2019-02-10 00:03:14 +00:00
jesopo
e2b019a9b8 log calls need a params arg (resume.py) 2019-02-10 00:02:24 +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
90618e883b Move REGEX_CUTOFF to outs.py (commands) 2019-02-09 17:52:51 +00:00
jesopo
1ff2a00c48 Move StdOut/StdErr specific consts to outs.py (commands) 2019-02-09 17:50:40 +00:00
jesopo
6b042d9460 Split command StdOut/StdErr in to their own file (commands) 2019-02-09 17:49:01 +00:00
jesopo
14db95601c Add an -L argument to start.py, to explicity specify log level 2019-02-09 16:40:23 +00:00
jesopo
b9e71ec833 title is already a parsed string from _get_title() (title.py) 2019-02-09 13:38:09 +00:00
jesopo
8bbfd1d1c3 Add empty params arg to log call (title.py) 2019-02-09 13:37:21 +00:00