aboutsummaryrefslogtreecommitdiff
path: root/modules/tweets/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-08-13 13:48:03 +0100
committerGravatar jesopo2019-08-13 13:48:03 +0100
commit03c7e8f0665c1036ece49155340697aa3b2d107d (patch)
tree55cb3283e4c27389b2b0a75107feef5be66243c9 /modules/tweets/__init__.py
parent"!yt" without args should get .message from BufferLine (diff)
signature
return matching string from buffer.find() as most uses were redundantly regexing
Diffstat (limited to 'modules/tweets/__init__.py')
-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():