Fix a bug for wizards

And now the "gm" command will get recorded.
This commit is contained in:
Howard Abrams 2026-02-27 22:16:24 -08:00
parent be13c8cb6e
commit 4c12c7d3ad
2 changed files with 7 additions and 3 deletions

3
.gitignore vendored
View file

@ -61,4 +61,5 @@ nosetests.xml
/transcripts/202*.html
/world/guest-book.md
/results.txt
server/ssl.*
server/ssl.*
/transcripts/cozy-20*.html

View file

@ -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)