From 4c12c7d3ad28f9c30b39d3ed6a91b7113fdf1356 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Fri, 27 Feb 2026 22:16:24 -0800 Subject: [PATCH] Fix a bug for wizards And now the "gm" command will get recorded. --- .gitignore | 3 ++- commands/wizards.py | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a482484..031e03f 100644 --- a/.gitignore +++ b/.gitignore @@ -61,4 +61,5 @@ nosetests.xml /transcripts/202*.html /world/guest-book.md /results.txt -server/ssl.* \ No newline at end of file +server/ssl.* +/transcripts/cozy-20*.html diff --git a/commands/wizards.py b/commands/wizards.py index 9406ca4..c7cc66c 100755 --- a/commands/wizards.py +++ b/commands/wizards.py @@ -157,7 +157,7 @@ class CmdMakeItem(Command): ] if self.item_number == 1: - if match(r"^[aeiou]"): + if match(r"^[aeiou]", self.item_name): name = f"an {self.item_name}" else: name = f"a {self.item_name}" @@ -252,6 +252,7 @@ class CmdGM(MuxCommand): locks = "cmd:perm(gm) or perm(Admin)" def func(self): + from typeclasses.things import Scribe send_to = [] for switch in self.switches: o = self.caller.search(switch, global_search=True) @@ -266,7 +267,9 @@ class CmdGM(MuxCommand): msg = routput(self.args) for o in send_to: if o.is_typeclass('typeclasses.rooms.Room'): - chars = o.contents_get(None, 'character') + # Send the message to all characters and any recording + # scribes in attendance: + chars = o.contents_get(None, 'character') + [o.has(Scribe)] send_emote(me, chars, msg, 'say', None) elif o.is_typeclass('typeclasses.characters.Character'): o.msg(msg)