Browse Source

Try a tighter throttle.

pull/10/merge
Ben Kurtovic 9 years ago
parent
commit
8df1e164ef
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      commands/welcome.py

+ 2
- 2
commands/welcome.py View File

@@ -65,7 +65,7 @@ class Welcome(Command):
return return


this_join = time() this_join = time()
if this_join - self._last_join < 5:
if this_join - self._last_join < 3:
self._throttle = True self._throttle = True
else: else:
self._throttle = False self._throttle = False
@@ -84,7 +84,7 @@ class Welcome(Command):
def _callback(self, data): def _callback(self, data):
"""Internal callback function.""" """Internal callback function."""
self._pending.append((data.chan, data.nick)) self._pending.append((data.chan, data.nick))
sleep(2)
sleep(1.5)


if data.chan in self.disabled or self._throttle: if data.chan in self.disabled or self._throttle:
return return


Loading…
Cancel
Save