evennia / evennia

Python MUD/MUX/MUSH/MU* development system

Home Page:http://www.evennia.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Documentation] 13.3.2. Command variant 2: Command on Character: Code is missing indentation on example

BurrowsForge opened this issue · comments

Existing page / new

Documentation issue

The code underneath def in the code example for the stand command on 13.3.2. Command variant 2: Command on Character is not indented under "def"

Suggested change

I don't know if this is correct but I'm sure whoever is reading this knows better than I do.

    def func(self):
    
        caller = self.caller
        #if we are sitting, this should be set on us
        sittable = caller.db.is_sitting
        if not sittable:
            caller.msg("You are not sitting down.")
        else:
            sittable.do_stand(caller)

image

Good catch; the indent was indeed wrong!