From ef1e336339cb7591cc8bf42fd069ee739bf730ca Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 1 Jun 2015 20:02:53 +0200 Subject: [PATCH] Added a missing update to the database store of cmdsethandler. Resolves #751. --- evennia/commands/cmdsethandler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evennia/commands/cmdsethandler.py b/evennia/commands/cmdsethandler.py index 07b2f6c52b..15e6d4c5ad 100644 --- a/evennia/commands/cmdsethandler.py +++ b/evennia/commands/cmdsethandler.py @@ -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: