aboutsummaryrefslogtreecommitdiff
path: root/modules/youtube.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/youtube.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/youtube.py')
-rw-r--r--modules/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/youtube.py b/modules/youtube.py
index 9f5bdc77..c90872a4 100644
--- a/modules/youtube.py
+++ b/modules/youtube.py
@@ -81,7 +81,7 @@ class Module(ModuleManager.BaseModule):
if event["args"]:
search = event["args"]
else:
- last_youtube = event["buffer"].find(REGEX_YOUTUBE)
+ last_youtube = event["target"].buffer.find(REGEX_YOUTUBE)
if last_youtube:
video_id = re.search(REGEX_YOUTUBE, last_youtube.message).group(1)
if search or video_id: