changeset 0ca299447d3a in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=0ca299447d3a
description: Fixed an issue with the bare command prefix

diffstat:

 src/command_system/framework.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5e3b45af33a6 -r 0ca299447d3a src/command_system/framework.py
--- a/src/command_system/framework.py   Mon Nov 02 15:25:04 2009 +0100
+++ b/src/command_system/framework.py   Mon Nov 02 17:42:00 2009 +0200
@@ -65,7 +65,7 @@
         Try to process text as a command. Returns True if it has been processed
         as a command and False otherwise.
         """
-        if not text.startswith(self.COMMAND_PREFIX):
+        if not (text.startswith(self.COMMAND_PREFIX) and len(text) > 1):
             return False
 
         body = text[len(self.COMMAND_PREFIX):]
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to