mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
cleanup: Remove duplicate 'objtag' method
This commit is contained in:
parent
3898752678
commit
465a46a91b
1 changed files with 0 additions and 14 deletions
|
|
@ -534,20 +534,6 @@ def is_ooc(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
return not session.get_puppet()
|
||||
|
||||
|
||||
def objtag(accessing_obj, accessed_obj, *args, **kwargs):
|
||||
"""
|
||||
Usage:
|
||||
objtag(tagkey)
|
||||
objtag(tagkey, category)
|
||||
|
||||
Only true if accessed_obj has the specified tag and optional
|
||||
category.
|
||||
"""
|
||||
tagkey = args[0] if args else None
|
||||
category = args[1] if len(args) > 1 else None
|
||||
return bool(accessed_obj.tags.get(tagkey, category=category))
|
||||
|
||||
|
||||
def inside(accessing_obj, accessed_obj, *args, **kwargs):
|
||||
"""
|
||||
Usage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue