From 4e08442cdec093609468fd7a35b1b548901bdbc5 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 12 Dec 2018 18:56:26 -0800 Subject: [PATCH] SedRegex: reuse processTimeout in the sub() process too --- SedRegex/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SedRegex/plugin.py b/SedRegex/plugin.py index 1334bf9..a6a2e4a 100644 --- a/SedRegex/plugin.py +++ b/SedRegex/plugin.py @@ -159,7 +159,7 @@ class SedRegex(callbacks.PluginRegexp): if self.registryValue('boldReplacementText', msg.args[0]): replacement = ircutils.bold(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. subst = '* %s %s' % (m.nick, subst)