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)