mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Added a missing update to the database store of cmdsethandler. Resolves #751.
This commit is contained in:
parent
d23a8a94db
commit
ef1e336339
1 changed files with 4 additions and 0 deletions
|
|
@ -417,12 +417,16 @@ class CmdSetHandler(object):
|
|||
if any(cset.permanent for cset in delcmdsets):
|
||||
# only hit database if there's need to
|
||||
storage = self.obj.cmdset_storage
|
||||
updated = False
|
||||
for cset in delcmdsets:
|
||||
if cset.permanent:
|
||||
try:
|
||||
storage.remove(cset.path)
|
||||
updated = True
|
||||
except ValueError:
|
||||
pass
|
||||
if updated:
|
||||
self.obj.cmdset_storage = storage
|
||||
for cset in delcmdsets:
|
||||
# clean the in-memory stack
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue