# HG changeset patch # User Matthew Wild # Date 1227585008 0 # Node ID b5b4ec28feec1a1f596a9f9956021d8bc988edba # Parent 64982773cc15a2d98a0386fc07858827a3eeba90 Change loading order of modules, config before dependency checking diff -r 64982773cc15 -r b5b4ec28feec main.lua --- a/main.lua Tue Nov 25 03:48:43 2008 +0000 +++ b/main.lua Tue Nov 25 03:50:08 2008 +0000 @@ -1,10 +1,6 @@ pcall(require, "luarocks.require") -local server = require "net.server" local config = require "core.configmanager" - -require "util.dependencies" - log = require "util.logger".init("general"); do @@ -28,6 +24,10 @@ end end +local server = require "net.server" + +require "util.dependencies" + -- Maps connections to sessions -- sessions = {}; hosts = {};