diff --git a/typeclasses/sittables.py b/typeclasses/sittables.py index 1d0df31..326b96e 100755 --- a/typeclasses/sittables.py +++ b/typeclasses/sittables.py @@ -37,6 +37,12 @@ class Sittable(Object): sitter.msg(f"You are already sitting {adjective} {article} {self.key}.") return + # Clean up an issue that sometimes someone logs off or leaves + # a room without standing first. + if self.db.sitter: + if not self.location.has(self.db.sitter): + self.db.sitter = None + if self.db.sitter and not self.multiple: sitter.msg(f"You can't sit {adjective} {article} {self.key} " f"- {current.get_display_name(sitter)} is already sitting there!")