From 8df1e164efac51724b89032c34b4baf2cbea7efa Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 13 Sep 2015 02:47:22 -0500 Subject: [PATCH] Try a tighter throttle. --- commands/welcome.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/welcome.py b/commands/welcome.py index afa0d3c..ef46c29 100644 --- a/commands/welcome.py +++ b/commands/welcome.py @@ -65,7 +65,7 @@ class Welcome(Command): return this_join = time() - if this_join - self._last_join < 5: + if this_join - self._last_join < 3: self._throttle = True else: self._throttle = False @@ -84,7 +84,7 @@ class Welcome(Command): def _callback(self, data): """Internal callback function.""" self._pending.append((data.chan, data.nick)) - sleep(2) + sleep(1.5) if data.chan in self.disabled or self._throttle: return