diff --git a/contrib/extended_room.py b/contrib/extended_room.py index 05a0342c9d..b0e45a680d 100644 --- a/contrib/extended_room.py +++ b/contrib/extended_room.py @@ -23,6 +23,10 @@ time comes. An updated @desc command allows for setting seasonal descriptions. +The room uses the src.utils.gametime.GameTime global script. This is +started by default, but if you have deactivated it, you need to +supply your own time keeping mechanism. + 2) In-description changing tags diff --git a/src/commands/default/system.py b/src/commands/default/system.py index 41b9594e64..4faacd6af3 100644 --- a/src/commands/default/system.py +++ b/src/commands/default/system.py @@ -149,20 +149,22 @@ class CmdPy(MuxCommand): 'ev':ev, 'inherits_from':utils.inherits_from} - caller.msg(">>> %s" % pycode) + caller.msg(">>> %s{n" % pycode) try: ret = eval(pycode, {}, available_vars) - ret = "<<< %s" % str(ret) + if ret != None: + ret = "{n<<< %s" % str(ret) except Exception: try: exec(pycode, {}, available_vars) - ret = "<<< Done." + ret = "{n<<< Done." except Exception: errlist = traceback.format_exc().split('\n') if len(errlist) > 4: errlist = errlist[4:] - ret = "\n".join("<<< %s" % line for line in errlist if line) - caller.msg(ret) + ret = "\n".join("{n<<< %s" % line for line in errlist if line) + if ret != None: + caller.msg(ret) # helper function. Kept outside so it can be imported and run # by other commands.