mirror of https://github.com/Mikaela/Limnoria.git
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:
parent
b774268498
commit
5f9d2bc4ce
|
@ -539,7 +539,10 @@ class FloodQueue(object):
|
||||||
repr(self.queues))
|
repr(self.queues))
|
||||||
|
|
||||||
def key(self, msg):
|
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):
|
def getTimeout(self):
|
||||||
if callable(self.timeout):
|
if callable(self.timeout):
|
||||||
|
|
Loading…
Reference in New Issue