Changed the flag save_next to save_for_next, it makes more sense.
This commit is contained in:
parent
6e53e6a1fd
commit
6fdfbe657b
2 changed files with 3 additions and 3 deletions
|
|
@ -238,7 +238,7 @@ def cmdhandler(caller, raw_string, testing=False):
|
||||||
# post-command hook
|
# post-command hook
|
||||||
cmd.at_post_cmd()
|
cmd.at_post_cmd()
|
||||||
|
|
||||||
if cmd.save_next:
|
if cmd.save_for_next:
|
||||||
# store a reference to this command, possibly
|
# store a reference to this command, possibly
|
||||||
# accessible by the next command.
|
# accessible by the next command.
|
||||||
caller.ndb.last_cmd = copy(cmd)
|
caller.ndb.last_cmd = copy(cmd)
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,8 @@ class CommandMeta(type):
|
||||||
except Exception:
|
except Exception:
|
||||||
mcs.aliases = []
|
mcs.aliases = []
|
||||||
mcs.aliases = [str(alias).strip() for alias in mcs.aliases]
|
mcs.aliases = [str(alias).strip() for alias in mcs.aliases]
|
||||||
if not hasattr(mcs, "save_next"):
|
if not hasattr(mcs, "save_for_next"):
|
||||||
mcs.save_next = False
|
mcs.save_for_next = False
|
||||||
|
|
||||||
# pre-process locks as defined in class definition
|
# pre-process locks as defined in class definition
|
||||||
temp = []
|
temp = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue