add !grab as an alias of !quotegrab

This commit is contained in:
jesopo 2019-09-04 15:54:43 +01:00
parent 9561cba168
commit 62faf62b82

View file

@ -106,6 +106,7 @@ class Module(ModuleManager.BaseModule):
else:
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)
def quote_grab(self, event):
line = event["target"].buffer.find_from(event["args_split"][0])