mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Added a fix to object identifier routine
This commit is contained in:
parent
cdf676f061
commit
4da6dccfc1
1 changed files with 3 additions and 3 deletions
|
|
@ -48,11 +48,11 @@ def identify_object(inp):
|
|||
if hasattr(inp, "__dbclass__"):
|
||||
clsname = inp.__dbclass__.__name__
|
||||
if clsname == "PlayerDB":
|
||||
return "player"
|
||||
return inp, "player"
|
||||
elif clsname == "ObjectDB":
|
||||
return "object"
|
||||
return inp ,"object"
|
||||
elif clsname == "ChannelDB":
|
||||
return "channel"
|
||||
return inp, "channel"
|
||||
if isinstance(inp, basestring):
|
||||
return inp, "string"
|
||||
elif dbref(inp):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue