aboutsummaryrefslogtreecommitdiff
path: root/modules/google.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-10 10:42:41 +0100
committerGravatar jesopo2018-10-10 10:42:41 +0100
commit376825ea96099efc0f5e890370a417db1902df1a (patch)
tree456f70d784e9b63cbc70b167380d95000d5e4030 /modules/google.py
parentRemove debug print in src.utils.http (diff)
signature
Mark command hooks that are aliases ('g' vs 'google')
Diffstat (limited to 'modules/google.py')
-rw-r--r--modules/google.py3
1 files changed, 2 insertions, 1 deletions
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