CoralMUD-0.15/
CoralMUD-0.15/core/
CoralMUD-0.15/data/
CoralMUD-0.15/data/areas/
CoralMUD-0.15/data/help/
CoralMUD-0.15/data/players/
CoralMUD-0.15/lib/automap/
CoralMUD-0.15/lib/items/
module ScriptEnvironment
  def run txt, b=binding()
    proc {
      txt.untaint
      $SAFE = 3
      begin
        b.eval(txt)
      rescue Exception=>e
        log :info, "Script failed."
        log_exception e, :info
      end
    }.call
  end
end