SedRegex: reuse processTimeout in the sub() process too

From: 4e08442cde
This commit is contained in:
James Lu 2018-12-12 18:56:26 -08:00
parent 363285cfbf
commit 06f70e59da

View File

@ -159,7 +159,7 @@ class SedRegex(callbacks.PluginRegexp):
if self.registryValue('boldReplacementText', msg.args[0]): if self.registryValue('boldReplacementText', msg.args[0]):
replacement = ircutils.bold(replacement) replacement = ircutils.bold(replacement)
subst = process(pattern.sub, replacement, subst = process(pattern.sub, replacement,
text, count, timeout=0.05) text, count, timeout=regex_timeout)
if action: # If the message was an ACTION, prepend the nick back. if action: # If the message was an ACTION, prepend the nick back.
subst = '* %s %s' % (m.nick, subst) subst = '* %s %s' % (m.nick, subst)