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
Showing only changes of commit 42cbdaf6c8 - Show all commits

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