aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-03-07 01:09:53 +0000
committerMichael VanOverbeek <[email protected]>2017-03-07 01:09:53 +0000
commitbf3dbc26a5579e9c2134435d272aafe857ffd1d1 (patch)
tree628cd3066668f3d02686caa9ea9bb09ae7d25590 /ShiftOS.Server
parent081b59d749a11737b6465aacf2288d5be365cbfa (diff)
downloadshiftos_thereturn-bf3dbc26a5579e9c2134435d272aafe857ffd1d1.tar.gz
shiftos_thereturn-bf3dbc26a5579e9c2134435d272aafe857ffd1d1.tar.bz2
shiftos_thereturn-bf3dbc26a5579e9c2134435d272aafe857ffd1d1.zip
the mud called me a drunk
Diffstat (limited to 'ShiftOS.Server')
-rw-r--r--ShiftOS.Server/RandomUserGenerator.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/ShiftOS.Server/RandomUserGenerator.cs b/ShiftOS.Server/RandomUserGenerator.cs
index afaee46..8c1e430 100644
--- a/ShiftOS.Server/RandomUserGenerator.cs
+++ b/ShiftOS.Server/RandomUserGenerator.cs
@@ -214,12 +214,18 @@ namespace ShiftOS.Server
targets = new Dictionary<string, string>();
foreach(var dir in dirs)
{
- string sDir = dir.Replace("\\", "/");
- while (!sDir.StartsWith("shiftnet/"))
+ if (!string.IsNullOrWhiteSpace(dir))
{
- sDir = sDir.Remove(0, 1);
+ string sDir = dir.Replace("\\", "/");
+ if (sDir.Contains("shiftnet"))
+ {
+ while (!sDir.StartsWith("shiftnet/"))
+ {
+ sDir = sDir.Remove(0, 1);
+ }
+ targets.Add(dir, output + "/" + sDir);
+ }
}
- targets.Add(dir, output + "/" + sDir);
}
}