def make_unique(self, caller):
        unique = {}
        for cmd in self.commands:
            if cmd.key in unique:
                ocmd = unique[cmd.key]
                if (hasattr(cmd, 'obj') and cmd.obj == caller) and not \
                        (hasattr(ocmd, 'obj') and ocmd.obj == caller):
                    unique[cmd.key] = cmd
            else:
                unique[cmd.key] = cmd
        self.commands = listvalues(unique)
Remove duplicate command-keys (unsafe)
dataset/ETHPy150Open evennia/evennia/evennia/commands/cmdset.py/CmdSet.make_unique