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/google.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/google.py') diff --git a/modules/google.py b/modules/google.py index ebbc7461..076ba752 100644 --- a/modules/google.py +++ b/modules/google.py @@ -8,7 +8,8 @@ URL_GOOGLESEARCH = "https://www.googleapis.com/customsearch/v1" URL_GOOGLESUGGEST = "http://google.com/complete/search" class Module(ModuleManager.BaseModule): - @utils.hook("received.command.google|g") + @utils.hook("received.command.g", alias_of="google") + @utils.hook("received.command.google") def google(self, event): """ :help: Get first Google result for a given search term -- cgit v1.3.1-10-gc9f91