http://sourceforge.net/projects/python-irclib
"""
+# TO-DO: use the CHANLIMIT field in 005.
+
# These things might need tuning
HOST = "localhost"
DISCONNECT_TTL = (24 * 60 * 60) # Time to live, seconds from last connect
UNSEEN_TTL = 60 # Time to live, seconds since first request
CHANNEL_MAX = 18 # Max channels open per socket (freenet limit)
+ANTI_FLOOD_DELAY = 0.125 # Anti-flood delay after trasmissions, seconds
# No user-serviceable parts below this line
self.last_xmit = time.time()
self.irker.debug(1, "XMIT_TTL bump (%s transmission) at %s" % (self.servername, time.asctime()))
self.queue.task_done()
+ time.sleep(ANTI_FLOOD_DELAY)
def live(self):
"Should this connection not be scavenged?"
return self.status != "expired"