From cada17ebb3c9b405b9fe9384b0932ad495df884d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 1 Dec 2003 11:17:00 +0000 Subject: [PATCH] Added logging of the regexp and originator, in case of abuse. --- plugins/Utilities.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Utilities.py b/plugins/Utilities.py index 4e07ca02d..b7c3a8bf1 100644 --- a/plugins/Utilities.py +++ b/plugins/Utilities.py @@ -137,6 +137,11 @@ class Utilities(callbacks.Privmsg): regexp to """ (regexp, text) = privmsgs.getArgs(args, required=2) + self.log.info('re command called with regexp %r from %s' % + (regexp, msg.prefix)) + if len(regexp) > 512: + irc.error(msg, 'Your regexp is just plain too long.') + return f = None try: r = utils.perlReToPythonRe(regexp)