From 5f9d2bc4ce098b554abb78a7ce30c9d53bd98268 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 28 Dec 2009 12:26:33 -0600 Subject: [PATCH] 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. --- src/ircutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ircutils.py b/src/ircutils.py index 24731be64..4c0aa8a88 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -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):