Comparison

main.lua @ 97:c3f12fd0c823

Some tiny changes for main.lua
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Oct 2008 01:23:30 +0100
parent 65:9c471840acb9
child 99:ba08b8a4eeef
comparison
equal deleted inserted replaced
96:70202f7f1830 97:c3f12fd0c823
1 require "luarocks.require" 1 require "luarocks.require"
2 2
3 server = require "net.server" 3 local server = require "net.server"
4 require "socket" 4 require "socket"
5 require "ssl" 5 require "ssl"
6 require "lxp" 6 require "lxp"
7 7
8 function log(type, area, message) 8 function log(type, area, message)
37 local st = stanza; 37 local st = stanza;
38 ------------------------------ 38 ------------------------------
39 39
40 40
41 41
42 local hosts, users = hosts, users; 42 local hosts, sessions = hosts, sessions;
43 43
44 function connect_host(host) 44 function connect_host(host)
45 hosts[host] = { type = "remote", sendbuffer = {} }; 45 hosts[host] = { type = "remote", sendbuffer = {} };
46 end 46 end
47 47