Changed the flag save_next to save_for_next, it makes more sense.

This commit is contained in:
Griatch 2012-02-17 19:02:57 +01:00
parent 6e53e6a1fd
commit 6fdfbe657b
2 changed files with 3 additions and 3 deletions

View file

@ -238,7 +238,7 @@ def cmdhandler(caller, raw_string, testing=False):
# post-command hook
cmd.at_post_cmd()
if cmd.save_next:
if cmd.save_for_next:
# store a reference to this command, possibly
# accessible by the next command.
caller.ndb.last_cmd = copy(cmd)

View file

@ -26,8 +26,8 @@ class CommandMeta(type):
except Exception:
mcs.aliases = []
mcs.aliases = [str(alias).strip() for alias in mcs.aliases]
if not hasattr(mcs, "save_next"):
mcs.save_next = False
if not hasattr(mcs, "save_for_next"):
mcs.save_for_next = False
# pre-process locks as defined in class definition
temp = []