diff options
| author | 2018-08-28 14:36:16 +0100 | |
|---|---|---|
| committer | 2018-08-28 14:36:16 +0100 | |
| commit | ef16817ad56d04107725afef66b66289f347d246 (patch) | |
| tree | 366dac33569993c5db962ade01e32a47d337f0f0 /IRCLineHandler.py | |
| parent | Made "you need to be authenticated" message more helpful (diff) | |
Switch to time.monotonic for comparisons, only send data at most once every .5
seconds and only send max 512 bytes at a time
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 38bf49a0..f67beb58 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -141,6 +141,9 @@ def handle_353(data): channel.add_user(user) for mode in modes: channel.add_mode(mode, nickname) +@handler(description="on-join user list has finished", default_event=True) +def handle_366(data): + data.server.send_who(data.args[2]) @handler(description="on user joining channel") def handle_JOIN(data): @@ -161,7 +164,6 @@ def handle_JOIN(data): del server.attempted_join[channel.name] bot.events.on("self").on("join").call(channel=channel, server=data.server) - server.send_who(channel.name) channel.send_mode() @handler(description="on user parting channel") |
