Better handling of command ambiguity.

This commit is contained in:
Jonathan Piacenti 2015-06-20 16:31:59 -05:00
parent 462b73b626
commit 27500b9762

View file

@ -363,6 +363,6 @@ class Command(object):
Returns:
A string with identifying information to disambiguate the object, conventionally with a preceding space.
"""
if hasattr(self, 'obj'):
if hasattr(self, 'obj') and self.obj != caller:
return " (%s)" % self.obj.get_display_name(caller)
return ""