mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Added logging of the regexp and originator, in case of abuse.
This commit is contained in:
parent
fb2d9b7f4f
commit
cada17ebb3
@ -137,6 +137,11 @@ class Utilities(callbacks.Privmsg):
|
||||
regexp to <text>
|
||||
"""
|
||||
(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)
|
||||
|
Loading…
Reference in New Issue
Block a user