Fix a bug for wizards
And now the "gm" command will get recorded.
This commit is contained in:
parent
be13c8cb6e
commit
4c12c7d3ad
2 changed files with 7 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -62,3 +62,4 @@ nosetests.xml
|
|||
/world/guest-book.md
|
||||
/results.txt
|
||||
server/ssl.*
|
||||
/transcripts/cozy-20*.html
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue