aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server/RandomUserGenerator.cs
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-03-07 13:14:07 +0000
committerMichael VanOverbeek <[email protected]>2017-03-07 13:14:07 +0000
commit01530d637d790a101ea4dcb0e183664420d98ff9 (patch)
tree50e9ccfcefe0e6c53a6cd1648f21a38f413a2295 /ShiftOS.Server/RandomUserGenerator.cs
parentbf3dbc26a5579e9c2134435d272aafe857ffd1d1 (diff)
downloadshiftos_thereturn-01530d637d790a101ea4dcb0e183664420d98ff9.tar.gz
shiftos_thereturn-01530d637d790a101ea4dcb0e183664420d98ff9.tar.bz2
shiftos_thereturn-01530d637d790a101ea4dcb0e183664420d98ff9.zip
Fix NPC generation
Diffstat (limited to 'ShiftOS.Server/RandomUserGenerator.cs')
-rw-r--r--ShiftOS.Server/RandomUserGenerator.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ShiftOS.Server/RandomUserGenerator.cs b/ShiftOS.Server/RandomUserGenerator.cs
index 8c1e430..672f25d 100644
--- a/ShiftOS.Server/RandomUserGenerator.cs
+++ b/ShiftOS.Server/RandomUserGenerator.cs
@@ -119,6 +119,7 @@ namespace ShiftOS.Server
var dir = new ShiftOS.Objects.ShiftFS.Directory();
//name the directory after the user
dir.Name = sve.Username;
+ dir.permissions = Objects.ShiftFS.Permissions.All;
//json the object and mount
string json = Newtonsoft.Json.JsonConvert.SerializeObject(dir);
//mount it to the MUD
@@ -219,7 +220,7 @@ namespace ShiftOS.Server
string sDir = dir.Replace("\\", "/");
if (sDir.Contains("shiftnet"))
{
- while (!sDir.StartsWith("shiftnet/"))
+ while (!sDir.StartsWith("shiftnet"))
{
sDir = sDir.Remove(0, 1);
}