35 |
35 |
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 |
41 |
41 function client.log(fmt, ...) |
42 function client.log(fmt, ...) |
42 return client.stream:info(fmt, ...); |
43 return client.stream:info(fmt, ...); |
43 end |
44 end |
44 |
45 |