From 8b89a4db2f9cb9f33c11e8209f8df9d57708ace8 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Thu, 15 Jan 2009 16:01:23 +0000 Subject: [PATCH] Don't show dbrefs in get/drop notifications. May add a show_dbrefs flag down the road. --- src/commands/general.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/general.py b/src/commands/general.py index db5f7f3460..586b71d4de 100644 --- a/src/commands/general.py +++ b/src/commands/general.py @@ -169,10 +169,10 @@ def cmd_get(command): return target_obj.move_to(pobject, quiet=True) - session.msg("You pick up %s." % (target_obj.get_name(),)) + session.msg("You pick up %s." % (target_obj.get_name(show_dbref=False),)) pobject.get_location().emit_to_contents("%s picks up %s." % - (pobject.get_name(), - target_obj.get_name()), + (pobject.get_name(show_dbref=False), + target_obj.get_name(show_dbref=False)), exclude=pobject) # SCRIPT: Call the object's script's a_get() method. @@ -204,10 +204,10 @@ def cmd_drop(command): return target_obj.move_to(pobject.get_location(), quiet=True) - session.msg("You drop %s." % (target_obj.get_name(),)) + session.msg("You drop %s." % (target_obj.get_name(show_dbref=False),)) pobject.get_location().emit_to_contents("%s drops %s." % - (pobject.get_name(), - target_obj.get_name()), + (pobject.get_name(show_dbref=False), + target_obj.get_name(show_dbref=False)), exclude=pobject) # SCRIPT: Call the object's script's a_drop() method.