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/urbandictionary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/urbandictionary.py') diff --git a/modules/urbandictionary.py b/modules/urbandictionary.py index 2f86ff6b..314b492f 100644 --- a/modules/urbandictionary.py +++ b/modules/urbandictionary.py @@ -5,7 +5,8 @@ URL_URBANDICTIONARY = "http://api.urbandictionary.com/v0/define" REGEX_DEFNUMBER = re.compile("-n(\d+) \S+") class Module(ModuleManager.BaseModule): - @utils.hook("received.command.urbandictionary|ud", min_args=1) + @utils.hook("received.command.ud", alias_of="urbandictionary") + @utils.hook("received.command.urbandictionary", min_args=1) def ud(self, event): """ :help: Get the definition of a provided term from Urban Dictionary -- cgit v1.3.1-10-gc9f91