From d608ccbd6d8d1d3dbbe8660d22b6a329df71da63 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 29 Oct 2011 16:55:46 +0200 Subject: Remove the information() call in the link plugin --- plugins/link.py | 1 - 1 file changed, 1 deletion(-) (limited to 'plugins') diff --git a/plugins/link.py b/plugins/link.py index 0cd1a0f1..34f0a441 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -21,7 +21,6 @@ class Plugin(BasePlugin): for message in messages[::-1]: match = url_pattern.search(clean_text(message.txt)) if match: - self.core.information('[%s]' % (match.groups(),)) for url in list(match.groups())[::-1]: if nb == 1: return url -- cgit v1.2.3 From 21f0c8f3f348ca515b81208c73704d5fd7b10328 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 29 Oct 2011 17:20:18 +0200 Subject: Fix the url matching in the link plugin --- plugins/link.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/link.py b/plugins/link.py index 34f0a441..8ef52982 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -19,9 +19,9 @@ class Plugin(BasePlugin): if not messages: return None for message in messages[::-1]: - match = url_pattern.search(clean_text(message.txt)) - if match: - for url in list(match.groups())[::-1]: + matches = url_pattern.findall(clean_text(message.txt)) + if matches: + for url in matches[::-1]: if nb == 1: return url else: -- cgit v1.2.3