diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/title.py | |
| parent | Add a way to not add a user automatically in IRCServer.get_user (diff) | |
| signature | ||
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/title.py b/modules/title.py index 6ec5c6d8..34b539d1 100644 --- a/modules/title.py +++ b/modules/title.py @@ -1,10 +1,10 @@ import re -from src import ModuleManager, Utils +from src import ModuleManager, utils REGEX_URL = re.compile("https?://\S+", re.I) class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.title|t", usage="[URL]") + @utils.hook("received.command.title|t", usage="[URL]") def title(self, event): """ :help: Get the title of a URL @@ -20,7 +20,7 @@ class Module(ModuleManager.BaseModule): if not url: event["stderr"].write("No URL provided/found.") return - soup = Utils.get_url(url, soup=True) + soup = utils.http.get_url(url, soup=True) if not soup: event["stderr"].write("Failed to get URL.") return |
