changeset 7b93a731eb71 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=7b93a731eb71 description: Fix the check of whether command succeeded or not
diffstat:
src/command_system/implementation/middleware.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 9436064192c6 -r 7b93a731eb71 src/command_system/implementation/middleware.py --- a/src/command_system/implementation/middleware.py Mon Apr 19 13:28:25 2010 +0300 +++ b/src/command_system/implementation/middleware.py Mon Apr 19 17:26:59 2010 +0300 @@ -35,15 +35,15 @@ """
def process_as_command(self, text): + self.command_succeeded = False flag = super(ChatCommandProcessor, self).process_as_command(text) - if flag and self.command_succeded: + if flag and self.command_succeeded: self.add_history(text) self.clear_input() return flag
def execute_command(self, name, arguments): try: - self.command_succeded = False super(ChatCommandProcessor, self).execute_command(name, arguments) except NoCommandError, error: details = dict(name=error.name, message=error.message) @@ -57,7 +57,7 @@ self.echo("An error occured while trying to execute the command", 'error') print_exc() else: - self.command_succeded = True + self.command_succeeded = True
def looks_like_command(self, text, body, name, arguments): # Command escape stuff ggoes here. If text was prepended by the