Move standard_objsearch to Objects.search_for_object. Also make sure @alias only accepts alphanumeric strings.

This commit is contained in:
Greg Taylor 2009-01-25 03:11:52 +00:00
parent eacdf8b33c
commit 7ff97599be
7 changed files with 93 additions and 90 deletions

View file

@ -101,8 +101,8 @@ def cmd_newpassword(command):
source_object.emit_to("You must supply a new password.")
return
target_obj = Object.objects.standard_objsearch(source_object, searchstring)
# Use standard_objsearch to handle duplicate/nonexistant results.
target_obj = source_object.search_for_object(searchstring)
# Use search_for_object to handle duplicate/nonexistant results.
if not target_obj:
return