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 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