aboutsummaryrefslogtreecommitdiff
path: root/modules/tweets
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tweets')
-rw-r--r--modules/tweets/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tweets/__init__.py b/modules/tweets/__init__.py
index 9aaaab17..c07cd739 100644
--- a/modules/tweets/__init__.py
+++ b/modules/tweets/__init__.py
@@ -152,7 +152,8 @@ class Module(ModuleManager.BaseModule):
else:
target = event["target"].buffer.find(REGEX_TWITTERURL)
if target:
- target = target.message
+ target = target.match
+
if target:
url_match = re.search(REGEX_TWITTERURL, target)
if url_match or target.isdigit():