mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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 to <text>
|
||||||
"""
|
"""
|
||||||
(regexp, text) = privmsgs.getArgs(args, required=2)
|
(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
|
f = None
|
||||||
try:
|
try:
|
||||||
r = utils.perlReToPythonRe(regexp)
|
r = utils.perlReToPythonRe(regexp)
|
||||||
|
Loading…
Reference in New Issue
Block a user