"!alias show" should be looking at index 1 for alias

This commit is contained in:
jesopo 2019-11-20 12:05:41 +00:00
parent 050bfd29f7
commit 714d40b79f

View file

@ -82,7 +82,7 @@ class Module(ModuleManager.BaseModule):
if not len(event["args_split"]) > 1: if not len(event["args_split"]) > 1:
raise utils.EventError("Please provide an alias to remove") raise utils.EventError("Please provide an alias to remove")
alias = event["args_split"][0].lower() alias = event["args_split"][1].lower()
setting = target.get_setting("%s%s" % (SETTING_PREFIX, alias), None) setting = target.get_setting("%s%s" % (SETTING_PREFIX, alias), None)
if setting == None: if setting == None: