From e1eb6cff8e91dac26dd9e0c5be22140c62e72afb Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 20 Oct 2003 22:24:08 +0000 Subject: [PATCH] Fix for bug #826612. --- plugins/Utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Utilities.py b/plugins/Utilities.py index e8881b065..44db0890c 100644 --- a/plugins/Utilities.py +++ b/plugins/Utilities.py @@ -154,7 +154,7 @@ class Utilities(callbacks.Privmsg): f = None try: r = utils.perlReToPythonRe(regexp) - f = lambda s: ' '.join(r.findall(text)) + f = lambda s: r.search(s) and r.search(s).group(0) or '' except ValueError, e: try: f = utils.perlReToReplacer(regexp)