made things more "require friendly"

This commit is contained in:
Kingdaro 2015-02-06 08:42:52 -05:00
parent c9b2980929
commit 42cbdaf6c8
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
local md5 = require "md5" local folder = (...):gsub('%.init$', '')
local http = require "socket.http" local md5 = require(folder .. ".md5" )
local http = require("socket.http")
local GJ = { local GJ = {
gameID, gameKey, gameID, gameKey,
@ -75,7 +76,7 @@ function GJ.fetchUserByName(name)
parseKeypair(r, function(k, v) parseKeypair(r, function(k, v)
t[k] = v t[k] = v
end) end)
return t return t
end end
@ -86,7 +87,7 @@ function GJ.fetchUserByID(id)
parseKeypair(r, function(k, v) parseKeypair(r, function(k, v)
t[k] = v t[k] = v
end) end)
return t return t
end end
@ -220,4 +221,4 @@ function GJ.fetchTables()
return t return t
end end
return GJ return GJ