Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login = { ... }
- function incorrect()
- term.setTextColor(colors.red)
- print("Incorrect Username or password")
- term.setTextColor(colors.white)
- end
- function usage()
- term.setTextColor(colors.red)
- print("Usage: login <user> <password>")
- term.setTextColor(colors.white)
- end
- if #login < 1 then
- usage()
- else
- if #login > 2 then
- usage()
- else
- if #login == 1 then
- usage()
- else
- --
- if #login[1] == "lua" then
- if #login[2] == "b33" then
- shell.run("/rom/programs/lua")
- else
- incorrect()
- end
- else
- incorrect()
- end
- --
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement