36 return { |
36 return { |
37 _validate = function (client) |
37 _validate = function (client) |
38 assert(client.jid, "No JID specified"); |
38 assert(client.jid, "No JID specified"); |
39 client.stream = verse.new(verse.new_logger(client.name)); |
39 client.stream = verse.new(verse.new_logger(client.name)); |
40 client.stream.connect_host = client.connect_host |
40 client.stream.connect_host = client.connect_host |
|
41 client.stream.connect_port = client.connect_port |
41 |
42 |
42 function client.log(fmt, ...) |
43 function client.log(fmt, ...) |
43 return client.stream:info(fmt, ...); |
44 return client.stream:info(fmt, ...); |
44 end |
45 end |
45 |
46 |