3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

core: half the default throttle time (from 0.01 to 0.005)

This commit is contained in:
James Lu 2017-03-28 22:38:54 -07:00
parent 029bb38af8
commit ae6c68018b
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ class Irc(utils.DeprecatedAttributesObject):
if self.queue: # Only process if there's data.
data = self.queue.popleft()
self._send(data)
throttle_time = self.serverdata.get('throttle_time', 0.01)
throttle_time = self.serverdata.get('throttle_time', 0.005)
self.aborted.wait(throttle_time)
log.debug('(%s) Stopping queue thread as aborted is set', self.name)

View File

@ -372,7 +372,7 @@ servers:
# Message throttling: when set to a non-zero value, only one message will be sent every X
# seconds. If your bot is constantly running into Excess Flood errors, raising this to
# something like 0.5 or 1.0 should help. Defaults to 0.01 if not set.
# something like 0.5 or 1.0 should help. Defaults to 0.005 if not set.
throttle_time: 0.3
# Clientbot also supports auto perform, using raw IRC messages.