diff options
| author | 2019-08-13 13:48:03 +0100 | |
|---|---|---|
| committer | 2019-08-13 13:48:03 +0100 | |
| commit | 03c7e8f0665c1036ece49155340697aa3b2d107d (patch) | |
| tree | 55cb3283e4c27389b2b0a75107feef5be66243c9 /modules/soundcloud.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/soundcloud.py')
| -rw-r--r-- | modules/soundcloud.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/soundcloud.py b/modules/soundcloud.py index 5b24b28e..a91faa10 100644 --- a/modules/soundcloud.py +++ b/modules/soundcloud.py @@ -30,8 +30,7 @@ class Module(ModuleManager.BaseModule): else: last_soundcloud = event["target"].buffer.find(REGEX_SOUNDCLOUD) if last_soundcloud: - url = re.match(REGEX_SOUNDCLOUD, - last_soundcloud.message).string + url = last_soundcloud.match if not query and not url: raise utils.EventError("no search phrase provided") |
