"!yt" without args should get .message from BufferLine
This commit is contained in:
parent
2af428cf2f
commit
9a51ac18ea
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
search = event["args"]
|
search = event["args"]
|
||||||
else:
|
else:
|
||||||
url = event["target"].buffer.find(REGEX_YOUTUBE)
|
url = event["target"].buffer.find(REGEX_YOUTUBE)
|
||||||
|
url = url.message if url else None
|
||||||
|
|
||||||
if not url:
|
if not url:
|
||||||
safe_setting = event["target"].get_setting("youtube-safesearch", True)
|
safe_setting = event["target"].get_setting("youtube-safesearch", True)
|
||||||
|
|
Loading…
Reference in a new issue