1
0
mirror of https://github.com/kepler155c/opus synced 2025-11-12 05:23:01 +00:00

require improvements, remove global Util

This commit is contained in:
kepler155c@gmail.com
2017-09-05 02:09:31 -04:00
parent 2b1d96ab37
commit ae7508e89b
82 changed files with 506 additions and 455 deletions

View File

@@ -1,6 +1,8 @@
local Socket = require('socket')
local Event = require('event')
local Crypto = require('crypto')
local Crypto = require('crypto')
local Event = require('event')
local Security = require('security')
local Socket = require('socket')
local Util = require('util')
Event.addRoutine(function()
@@ -12,7 +14,7 @@ Event.addRoutine(function()
local data = socket:read(2)
if data then
local password = os.getPassword()
local password = Security.getPassword()
if not password then
socket:write({ msg = 'No password has been set' })
else