diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-10-29 17:21:03 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-10-29 17:21:03 +0200 |
commit | 432afd6179e69b70b290fef68ea3bb263ff3b4c1 (patch) | |
tree | 0f5cf6e2f29ba234a8f7276577dda0a1a3600830 /plugins/link.py | |
parent | ab60a8ddde7bd9478bfe60daf48145e5b55690f0 (diff) | |
parent | 21f0c8f3f348ca515b81208c73704d5fd7b10328 (diff) | |
download | poezio-432afd6179e69b70b290fef68ea3bb263ff3b4c1.tar.gz poezio-432afd6179e69b70b290fef68ea3bb263ff3b4c1.tar.bz2 poezio-432afd6179e69b70b290fef68ea3bb263ff3b4c1.tar.xz poezio-432afd6179e69b70b290fef68ea3bb263ff3b4c1.zip |
Merge branch 'plugins' of http://git.louiz.org/poezio into plugins
Diffstat (limited to 'plugins/link.py')
-rw-r--r-- | plugins/link.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/link.py b/plugins/link.py index 0cd1a0f1..8ef52982 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -19,10 +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: - self.core.information('[%s]' % (match.groups(),)) - 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: |