aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-30 12:12:26 -0400
committerMichael <[email protected]>2017-07-30 12:12:26 -0400
commit38c78acaffdc8d04fb2201ac4517d20895c31759 (patch)
tree63d8c2552a688940a82972d2fc6e25aed19cff7e /ShiftOS_TheReturn
parent3d22591f46a18ee3f585f169b34ccb5a0457e39f (diff)
downloadshiftos_thereturn-38c78acaffdc8d04fb2201ac4517d20895c31759.tar.gz
shiftos_thereturn-38c78acaffdc8d04fb2201ac4517d20895c31759.tar.bz2
shiftos_thereturn-38c78acaffdc8d04fb2201ac4517d20895c31759.zip
fuckng hell
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/CommandParser.cs4
-rw-r--r--ShiftOS_TheReturn/Hacking.cs3
2 files changed, 5 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/CommandParser.cs b/ShiftOS_TheReturn/CommandParser.cs
index bd274cd..7568b98 100644
--- a/ShiftOS_TheReturn/CommandParser.cs
+++ b/ShiftOS_TheReturn/CommandParser.cs
@@ -131,9 +131,9 @@ namespace ShiftOS.Engine
if(id_found == false)
{
id_found = true;
- id_text = inp;
+ id_text = inp.Remove(0,1);
res = "";
- arguments.Add("id", inp);
+ arguments.Add("id", id_text);
}
}
}
diff --git a/ShiftOS_TheReturn/Hacking.cs b/ShiftOS_TheReturn/Hacking.cs
index 0186e51..8412203 100644
--- a/ShiftOS_TheReturn/Hacking.cs
+++ b/ShiftOS_TheReturn/Hacking.cs
@@ -124,10 +124,13 @@ namespace ShiftOS.Engine
throw new NaughtyDeveloperException("Someone tried to fail a non-existent hack.");
if (CurrentHackable.IsPwn3d)
throw new NaughtyDeveloperException("A developer tried to un-pwn a pwn3d hackable.");
+ Console.WriteLine();
Console.WriteLine("[sploitset] [FAIL] disconnected - connection terminated by remote machine ");
if (!string.IsNullOrWhiteSpace(CurrentHackable.Data.OnHackFailedStoryEvent))
Story.Start(CurrentHackable.Data.OnHackFailedStoryEvent);
CurrentHackable = null;
+ TerminalBackend.SetShellOverride("");
+ TerminalBackend.PrintPrompt();
}
public static void EndHack()