From 73f3c17d689ed82d629cbc4e45a975c52a1069f2 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Sat, 31 May 2025 09:52:01 -0700 Subject: [PATCH] Fix sitting bug --- typeclasses/sittables.py | 6 ++++++ 1 file changed, 6 insertions(+) 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!")