diff options
| author | 2018-10-10 10:42:41 +0100 | |
|---|---|---|
| committer | 2018-10-10 10:42:41 +0100 | |
| commit | 376825ea96099efc0f5e890370a417db1902df1a (patch) | |
| tree | 456f70d784e9b63cbc70b167380d95000d5e4030 /modules/title.py | |
| parent | Remove debug print in src.utils.http (diff) | |
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/title.py b/modules/title.py index 34b539d1..098d28e3 100644 --- a/modules/title.py +++ b/modules/title.py @@ -4,7 +4,8 @@ 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.t", alias_of="title") + @utils.hook("received.command.title", usage="[URL]") def title(self, event): """ :help: Get the title of a URL |
