list.insert() takes an index!

This commit is contained in:
jesopo 2019-12-12 13:52:33 +00:00
parent bfe5fc6569
commit 39a4e97901

View file

@ -15,7 +15,7 @@ class Module(ModuleManager.BaseModule):
lists = [] lists = []
for i, arg in reversed(list(enumerate(args))): for i, arg in reversed(list(enumerate(args))):
if arg[0] == "@": if arg[0] == "@":
lists.insert(args.pop(i)) lists.insert(0, args.pop(i))
lists = lists or DEFAULT_LISTS lists = lists or DEFAULT_LISTS
address = args[0] address = args[0]