mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-03 08:04:07 +01:00
SedRegex: reuse processTimeout in the sub() process too
From: 4e08442cde
This commit is contained in:
parent
363285cfbf
commit
06f70e59da
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user