in misc/j0hnny_5/server.go [337:379]
func process_triple(cmd_array []string, unlocked bool, hint bool) (string, bool, bool) {
var rsp string
arg0, arg1, arg2 := cmd_array[0], cmd_array[1], cmd_array[2]
switch arg0 {
case "GET":
rsp = "J0hnny 5 HTTP ErRor: Segmentation fault (minihttpd)"
break
case "help":
switch arg1 {
case "command":
switch arg2 {
case "self_destruct":
rsp = "Calls the NukeFromOrbit() function, it's the only way to be sure."
}
}
case "command":
switch arg1 {
case "access_code":
switch arg2 {
case UNLOCK_CODE:
rsp = "Access gained. Number FIVE"
unlocked = true
case "1337":
rsp = "ACCESS DENIED"
hint = true
case "20":
rsp = "ACCESS DENIED"
hint = true
case "12345":
rsp = "ACCESS DENIED"
hint = true
case "29":
rsp = "Strike 3, you're out!"
default:
rsp = "ACCESS DENIED"
if (hint) {
rsp = "ACCESS DENIED but a hint: you may need to watch a movie, youtube or otherwise obtain words."
}
}
}
}
return rsp, unlocked, hint
}