mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix iteration error if passing a raw string for aliases/tags/perms in spawner
This commit is contained in:
parent
246f4c2e3b
commit
10fe39b96a
1 changed files with 3 additions and 3 deletions
|
|
@ -192,12 +192,12 @@ def _batch_create_object(*objparams):
|
|||
# call all setup hooks on each object
|
||||
objparam = objparams[iobj]
|
||||
# setup
|
||||
obj._createdict = {"permissions": objparam[1],
|
||||
obj._createdict = {"permissions": make_iter(objparam[1]),
|
||||
"locks": objparam[2],
|
||||
"aliases": objparam[3],
|
||||
"aliases": make_iter(objparam[3]),
|
||||
"nattributes": objparam[4],
|
||||
"attributes": objparam[5],
|
||||
"tags": objparam[6]}
|
||||
"tags": make_iter(objparam[6])}
|
||||
# this triggers all hooks
|
||||
obj.save()
|
||||
# run eventual extra code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue