Update old usage/help method

This commit is contained in:
jesopo 2018-10-03 15:59:49 +01:00
parent 89951aace5
commit cf397c395d

View file

@ -32,10 +32,11 @@ class Module(ModuleManager.BaseModule):
else: else:
event["stderr"].write("No phrase provided") event["stderr"].write("No phrase provided")
@utils.hook("received.command.suggest", usage="[phrase]") @utils.hook("received.command.suggest")
def suggest(self, event): def suggest(self, event):
""" """
Get suggested phrases from Google :help: Get suggested phrases from Google
:usage: [phrase]
""" """
phrase = event["args"] or event["target"].buffer.get() phrase = event["args"] or event["target"].buffer.get()
if phrase: if phrase: