We had an issue with a command flooder, so we've tightened command flood detection to detect things on a per-host basis, rather than a per-user@host basis.

This commit is contained in:
Jeremy Fincher 2009-12-28 12:26:33 -06:00
parent b774268498
commit 5f9d2bc4ce
1 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,10 @@ class FloodQueue(object):
repr(self.queues))
def key(self, msg):
return msg.user + '@' + msg.host
# This really ought to be configurable without subclassing, but for
# now, it works.
# used to be msg.user + '@' + msg.host but that was too easily abused.
return msg.host
def getTimeout(self):
if callable(self.timeout):