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)