jesopo
|
08bd31f150
|
A couple of tweaks to clarify some type hints
|
2018-12-02 09:56:57 +00:00 |
|
jesopo
|
c4ea6fa562
|
data is now line
|
2018-12-02 09:48:06 +00:00 |
|
jesopo
|
9a311c88b6
|
Remove print calls from IRCBot.py, move received data logging to IRCServer
|
2018-12-02 09:41:21 +00:00 |
|
jesopo
|
7c4b2b6c4e
|
Add .nickname/.username/.realname/.hostname to IRCServer
|
2018-11-27 12:16:36 +00:00 |
|
jesopo
|
72dca06626
|
Add a way to catch when a writebuffer is emptied so we can e.g. assure a QUIT is
sent before shutting down the bot
|
2018-11-27 11:56:03 +00:00 |
|
jesopo
|
3061c65024
|
IRCServer.Server.get_user should be 'typing.Optional[IRCUser.User]', not just
'IRCUser.user'
|
2018-11-21 20:18:12 +00:00 |
|
jesopo
|
5001e47af9
|
typo in src/IRCServer.py, 'typing.float' -> 'float'
|
2018-11-21 20:17:02 +00:00 |
|
jesopo
|
9ecbb6be7b
|
Fix mypy issues caused by overwriting a bytes variable with a str object
|
2018-11-21 20:16:07 +00:00 |
|
jesopo
|
bab4fca287
|
Add more return type annotations to src/IRCServer.Server
|
2018-11-21 20:13:56 +00:00 |
|
jesopo
|
9a5ba99840
|
Add some missing return type annotations in src/IRCServer.Server
|
2018-11-21 20:05:21 +00:00 |
|
jesopo
|
2852afd5f7
|
Add IRCServer.Server.get_target, to get an IRCChannel if the given target is a
channel name or an IRCUser
|
2018-11-21 20:04:07 +00:00 |
|
jesopo
|
5d813175a1
|
Don't enable write throttling until we get 005
|
2018-11-19 10:12:52 +00:00 |
|
jesopo
|
ed838193aa
|
Better support passing "send" events through the parsers already present in
modules/line_handler.py
|
2018-11-14 14:41:28 +00:00 |
|
jesopo
|
555e8faa03
|
Print MOTD in modules/print_activity.py (after caching it in
modules/line_handler.py)
|
2018-11-13 14:59:47 +00:00 |
|
jesopo
|
a9b6086c70
|
Split out Channels in to IRCChannels.Channels, not IRCChannel.Channels
|
2018-11-11 14:53:16 +00:00 |
|
jesopo
|
2816fe67bb
|
Move channel tracking data/functions to src/IRCChannel.Channels
|
2018-11-11 12:34:22 +00:00 |
|
jesopo
|
4bab1aea30
|
Add a way to more explicitly denote when a CAP handshake has ended early
|
2018-11-09 10:43:05 +00:00 |
|
jesopo
|
6bf6905262
|
Keep a track of bytes written and read per server
|
2018-11-08 13:31:05 +00:00 |
|
jesopo
|
26a16a7762
|
Keep a dict of isupport key:values on IRCServer.Server
|
2018-11-08 12:34:30 +00:00 |
|
jesopo
|
3cb9baeec3
|
Cache a server fileno from connect onwards, like we used to
|
2018-11-05 20:33:30 +00:00 |
|
jesopo
|
e2c806ffe4
|
Typo in IRCServer, 'nicknamme' -> 'nickname'
|
2018-11-05 20:18:22 +00:00 |
|
jesopo
|
9571c3f9fa
|
Update IRCServer.__repr__ to use connection_params
|
2018-11-05 20:18:06 +00:00 |
|
jesopo
|
afce01d0f8
|
Fall back to nickname for username/realname, as it used to be
|
2018-11-05 20:08:55 +00:00 |
|
jesopo
|
d63115440d
|
Fix the order of some connection params, add alias as a seperate argument to
IRCServer.Server
|
2018-11-05 18:30:39 +00:00 |
|
jesopo
|
6b8593a09b
|
Pass connection parameters around in their own object (IRCConnectionParameters)
|
2018-11-05 18:23:02 +00:00 |
|
jesopo
|
0676b7b0db
|
Call Database.channels.rename in IRCServer.Server.rename_channel
|
2018-11-05 16:47:47 +00:00 |
|
jesopo
|
c3f654673a
|
Cache socket fileno in IRCServer.Server just before disconnecting
|
2018-11-05 12:27:30 +00:00 |
|
jesopo
|
fcedc434f2
|
it should be self.bindhost, now that we've moved the logic to .connect() instead
of __init__
|
2018-11-05 12:18:30 +00:00 |
|
jesopo
|
1065bba3ef
|
Typo in src/IRCServer.py; 'self.AF_INET' -> 'socket.AF_INET'
|
2018-11-05 12:16:30 +00:00 |
|
jesopo
|
c2ebc7b5e4
|
Refactor IRCServer .connect() logic
|
2018-11-05 11:53:33 +00:00 |
|
jesopo
|
6d742f6a74
|
Implement IRCv3's draft/rename
|
2018-11-04 14:48:55 +00:00 |
|
jesopo
|
a4d8d1f855
|
Fix some non-explicit None returns, add type hints to important variables
|
2018-10-31 15:12:46 +00:00 |
|
jesopo
|
b543e31cd2
|
Fix/refactor issues brought up by type hint linting
|
2018-10-30 17:49:35 +00:00 |
|
jesopo
|
e07553c362
|
Add type/return hints throughout src/ and, in doing so, fix some cyclical
references.
|
2018-10-30 14:58:48 +00:00 |
|
jesopo
|
3094bb7748
|
Specifically handle OSError (e.g. Network is unreachable) as a disconnect
|
2018-10-26 11:30:16 +01:00 |
|
jesopo
|
751aaa3365
|
Add missing return in src/IRCServer.py.get_user_setting
|
2018-10-18 17:16:23 +01:00 |
|
jesopo
|
c48574a3d6
|
"Cannot" -> "can't" in IRCServer encoding fallback
|
2018-10-17 17:04:56 +01:00 |
|
jesopo
|
a4bfae9557
|
TRACE log when we have to use fallback encoding
|
2018-10-17 16:54:33 +01:00 |
|
jesopo
|
743b3bc754
|
event["args"] is an array already, args_split does not exist. Also send raw
events from src/IRCServer.py as call_unsafe to make errors like that more
apparent.
|
2018-10-15 14:29:16 +01:00 |
|
jesopo
|
40ffb6ce0e
|
Typo in src/IRCServer.py, 'defau;t' -> 'default'
|
2018-10-14 14:31:30 +01:00 |
|
jesopo
|
0ed0b235e9
|
Work directly from users in modules/coins.py.interest(), so as to not give
double-interest to two "users" online at the same time sharing the same identity
|
2018-10-14 14:30:19 +01:00 |
|
jesopo
|
e6a55b2b22
|
Improve "non-complete line" TRACE log
|
2018-10-11 18:07:11 +01:00 |
|
jesopo
|
dceed3d439
|
TRACE log when we receive and buffer a non-complete line
|
2018-10-11 17:56:19 +01:00 |
|
jesopo
|
0794a5173a
|
Add a way to track non-IRC sockets within the main epoll loop; use this for a
unix domain control socket!
|
2018-10-06 15:37:05 +01:00 |
|
jesopo
|
60ec6fe2db
|
'ssl-certificate'/'ssl-key' -> 'tls-certificate'/'tls-key'
|
2018-10-05 23:01:12 +01:00 |
|
jesopo
|
98207be7b1
|
'mode_prefixes' -> prefix_modes and prefix_symbols
|
2018-10-03 16:44:00 +01:00 |
|
jesopo
|
69d58eede2
|
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
|
2018-10-03 13:22:37 +01:00 |
|
jesopo
|
760c9d8844
|
Add a way to not add a user automatically in IRCServer.get_user
|
2018-10-03 11:32:31 +01:00 |
|
jesopo
|
9118af5e9c
|
Support changing command responses from PRIVMSG to NOTICE
|
2018-10-02 21:40:34 +01:00 |
|
jesopo
|
976b6ae335
|
Better support for msgtags with PRIVMSGs; put functionality in to
modules/commands.py to reply to specific messages by use of msgids
|
2018-10-01 17:26:31 +01:00 |
|