From 376825ea96099efc0f5e890370a417db1902df1a Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 10 Oct 2018 10:42:41 +0100 Subject: Mark command hooks that are aliases ('g' vs 'google') --- modules/title.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/title.py') 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 -- cgit v1.3.1-10-gc9f91