From ef16817ad56d04107725afef66b66289f347d246 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 28 Aug 2018 14:36:16 +0100 Subject: Switch to time.monotonic for comparisons, only send data at most once every .5 seconds and only send max 512 bytes at a time --- IRCLineHandler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IRCLineHandler.py') 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") -- cgit v1.3.1-10-gc9f91