aboutsummaryrefslogtreecommitdiff
path: root/modules/tweets.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 11:43:34 +0100
committerGravatar jesopo2018-09-30 11:43:34 +0100
commit30641ce312ff5ce768df5c83e54083f959401f39 (patch)
tree923ba832e52cf6749650ca9c4791adb517fb360f /modules/tweets.py
parentFix piece of modules/define.py._get_definition( that was accepting a word or an (diff)
signature
We don't need to explicitly pass "buffer" through on command events
Diffstat (limited to 'modules/tweets.py')
-rw-r--r--modules/tweets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tweets.py b/modules/tweets.py
index c41d66f9..4dc08789 100644
--- a/modules/tweets.py
+++ b/modules/tweets.py
@@ -32,7 +32,7 @@ class Module(ModuleManager.BaseModule):
if event["args"]:
target = event["args"]
else:
- target = event["buffer"].find(REGEX_TWITTERURL)
+ target = event["target"].buffer.find(REGEX_TWITTERURL)
if target:
target = target.message
if target: