"!yt" without args should get .message from BufferLine

This commit is contained in:
jesopo 2019-08-13 13:25:20 +01:00
parent 2af428cf2f
commit 9a51ac18ea

View file

@ -124,6 +124,7 @@ class Module(ModuleManager.BaseModule):
search = event["args"]
else:
url = event["target"].buffer.find(REGEX_YOUTUBE)
url = url.message if url else None
if not url:
safe_setting = event["target"].get_setting("youtube-safesearch", True)