Removed some old and now confusing, unsused variables and added some documenting strings.

This commit is contained in:
Griatch 2012-12-08 15:39:09 +01:00
parent 030c245b5b
commit 949da47917
4 changed files with 2 additions and 4 deletions

View file

@ -288,7 +288,6 @@ class CmdLightSourceOn(Command):
# look around
self.caller.execute_cmd("look")
class CmdLightSourceOff(Command):
"""
Switch off the lightsource.

View file

@ -122,6 +122,8 @@ def get_and_merge_cmdsets(caller):
yield obj.at_cmdset_get()
except Exception:
logger.log_trace()
# the call-type lock is checked here, it makes sure a player is not seeing e.g. the commands
# on a fellow player (which is why the no_superuser_bypass must be True)
local_objects_cmdsets = yield [obj.cmdset.current for obj in local_objlist
if (obj.cmdset.current and obj.locks.check(caller, 'call', no_superuser_bypass=True))]
for cset in local_objects_cmdsets:

View file

@ -774,8 +774,6 @@ class Character(Object):
"call:false()"])) # no commands can be called on character from outside
# add the default cmdset
self.cmdset.add_default(settings.CMDSET_DEFAULT, permanent=True)
# no other character should be able to call commands on the Character.
self.cmdset.outside_access = False
def at_object_creation(self):
"""

View file

@ -232,7 +232,6 @@ class Player(TypeClass):
# The ooc player cmdset
self.cmdset.add_default(CMDSET_OOC, permanent=True)
self.cmdset.outside_access = False
def at_player_creation(self):
"""