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
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -61,4 +61,5 @@ nosetests.xml
|
||||||
/transcripts/202*.html
|
/transcripts/202*.html
|
||||||
/world/guest-book.md
|
/world/guest-book.md
|
||||||
/results.txt
|
/results.txt
|
||||||
server/ssl.*
|
server/ssl.*
|
||||||
|
/transcripts/cozy-20*.html
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ class CmdMakeItem(Command):
|
||||||
]
|
]
|
||||||
|
|
||||||
if self.item_number == 1:
|
if self.item_number == 1:
|
||||||
if match(r"^[aeiou]"):
|
if match(r"^[aeiou]", self.item_name):
|
||||||
name = f"an {self.item_name}"
|
name = f"an {self.item_name}"
|
||||||
else:
|
else:
|
||||||
name = f"a {self.item_name}"
|
name = f"a {self.item_name}"
|
||||||
|
|
@ -252,6 +252,7 @@ class CmdGM(MuxCommand):
|
||||||
locks = "cmd:perm(gm) or perm(Admin)"
|
locks = "cmd:perm(gm) or perm(Admin)"
|
||||||
|
|
||||||
def func(self):
|
def func(self):
|
||||||
|
from typeclasses.things import Scribe
|
||||||
send_to = []
|
send_to = []
|
||||||
for switch in self.switches:
|
for switch in self.switches:
|
||||||
o = self.caller.search(switch, global_search=True)
|
o = self.caller.search(switch, global_search=True)
|
||||||
|
|
@ -266,7 +267,9 @@ class CmdGM(MuxCommand):
|
||||||
msg = routput(self.args)
|
msg = routput(self.args)
|
||||||
for o in send_to:
|
for o in send_to:
|
||||||
if o.is_typeclass('typeclasses.rooms.Room'):
|
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)
|
send_emote(me, chars, msg, 'say', None)
|
||||||
elif o.is_typeclass('typeclasses.characters.Character'):
|
elif o.is_typeclass('typeclasses.characters.Character'):
|
||||||
o.msg(msg)
|
o.msg(msg)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue