add !grab as an alias of !quotegrab
This commit is contained in:
parent
9561cba168
commit
62faf62b82
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("There are no quotes for this category")
|
event["stderr"].write("There are no quotes for this category")
|
||||||
|
|
||||||
|
@utils.hook("recieved.command.grab", alias_of="quotegrab")
|
||||||
@utils.hook("received.command.quotegrab", min_args=1, channel_only=True)
|
@utils.hook("received.command.quotegrab", min_args=1, channel_only=True)
|
||||||
def quote_grab(self, event):
|
def quote_grab(self, event):
|
||||||
line = event["target"].buffer.find_from(event["args_split"][0])
|
line = event["target"].buffer.find_from(event["args_split"][0])
|
||||||
|
|
Loading…
Reference in a new issue