Made some functionality fixes to @emit.

This commit is contained in:
Griatch 2014-01-08 08:47:28 +01:00
parent 6a1d645c75
commit 904dc77c80

View file

@ -369,6 +369,7 @@ class CmdEmit(MuxCommand):
# we check which command was used to force the switches
if self.cmdstring == '@remit':
rooms_only = True
send_to_contents = True
elif self.cmdstring == '@pemit':
players_only = True
@ -394,9 +395,9 @@ class CmdEmit(MuxCommand):
obj.msg(message)
if send_to_contents and hasattr(obj, "msg_contents"):
obj.msg_contents(message)
caller.msg("Emitted to %s and its contents." % objname)
caller.msg("Emitted to %s and contents:\n%s" % (objname, message))
else:
caller.msg("Emitted to %s." % objname)
caller.msg("Emitted to %s:\n%s" % (objname, message))
else:
caller.msg("You are not allowed to emit to %s." % objname)