made things more "require friendly"
This commit is contained in:
parent
c9b2980929
commit
42cbdaf6c8
@ -1,5 +1,6 @@
|
||||
local md5 = require "md5"
|
||||
local http = require "socket.http"
|
||||
local folder = (...):gsub('%.init$', '')
|
||||
local md5 = require(folder .. ".md5" )
|
||||
local http = require("socket.http")
|
||||
|
||||
local GJ = {
|
||||
gameID, gameKey,
|
||||
@ -75,7 +76,7 @@ function GJ.fetchUserByName(name)
|
||||
parseKeypair(r, function(k, v)
|
||||
t[k] = v
|
||||
end)
|
||||
|
||||
|
||||
return t
|
||||
end
|
||||
|
||||
@ -86,7 +87,7 @@ function GJ.fetchUserByID(id)
|
||||
parseKeypair(r, function(k, v)
|
||||
t[k] = v
|
||||
end)
|
||||
|
||||
|
||||
return t
|
||||
end
|
||||
|
||||
@ -220,4 +221,4 @@ function GJ.fetchTables()
|
||||
return t
|
||||
end
|
||||
|
||||
return GJ
|
||||
return GJ
|
Reference in New Issue
Block a user