From 6fdfbe657bf117c8bc1a7b8feb768333968f63e7 Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 17 Feb 2012 19:02:57 +0100 Subject: [PATCH] Changed the flag save_next to save_for_next, it makes more sense. --- src/commands/cmdhandler.py | 2 +- src/commands/command.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/cmdhandler.py b/src/commands/cmdhandler.py index ab71361ff6..990ec7b1b0 100644 --- a/src/commands/cmdhandler.py +++ b/src/commands/cmdhandler.py @@ -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) diff --git a/src/commands/command.py b/src/commands/command.py index 6e2960d533..8e475cf886 100644 --- a/src/commands/command.py +++ b/src/commands/command.py @@ -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 = []