Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Cherniuk <ts33kr@gmail.com>2010-04-19 18:26:59 +0400
committerAlexander Cherniuk <ts33kr@gmail.com>2010-04-19 18:26:59 +0400
commit6d62571da386e0e1a08b5eda8c6ad5b7648e1281 (patch)
treea3f2ef4cdf49a9760d36c384efc090c9d7fe98f5
parent5d56decdc42dc9b3a24a0c9d2abaad2dd2892f00 (diff)
Fix the check of whether command succeeded or not
-rw-r--r--src/command_system/implementation/middleware.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command_system/implementation/middleware.py b/src/command_system/implementation/middleware.py
index 5c28df0f8..ed158d5b4 100644
--- a/src/command_system/implementation/middleware.py
+++ b/src/command_system/implementation/middleware.py
@@ -35,15 +35,15 @@ class ChatCommandProcessor(CommandProcessor):
"""
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 @@ class ChatCommandProcessor(CommandProcessor):
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