Minor bugfix of addcom command, some other cleanup.

This commit is contained in:
Griatch 2009-05-02 15:55:47 +00:00
parent 5bc1db70ed
commit 1314629a06
4 changed files with 17 additions and 20 deletions

View file

@ -257,9 +257,11 @@ def cmd_find(command):
if len(results) > 0:
source_object.emit_to("Name matches for: %s" % (searchstring,))
s = ""
for result in results:
source_object.emit_to(" %s" % (result.get_name(fullname=True),))
source_object.emit_to("%d matches returned." % (len(results),))
s += " %s\n\r" % (result.get_name(fullname=True),)
s += "%d matches returned." % (len(results),)
source_object.emit_to(s)
else:
source_object.emit_to("No name matches found for: %s" % (searchstring,))
GLOBAL_CMD_TABLE.add_command("@find", cmd_find,