made things more "require friendly" #5

Merged
ghost merged 1 commits from master into master 2015-02-06 19:21:46 +00:00
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