108 |
108 |
109 if not config.password then |
109 if not config.password then |
110 io.write("Enter the password for "..config.jid..": "); |
110 io.write("Enter the password for "..config.jid..": "); |
111 config.password = io.read("*l"); |
111 config.password = io.read("*l"); |
112 end |
112 end |
113 |
113 |
|
114 -- Initialize the HTTP client |
|
115 local http = require "net.http"; |
|
116 http.default.options.sslctx = { |
|
117 mode = "client"; |
|
118 protocol = "sslv23"; |
|
119 capath = config.capath or "/etc/ssl/certs"; |
|
120 cafile = config.cafile; |
|
121 verify = "peer"; |
|
122 }; |
|
123 |
114 -- Create the stream object and bot object |
124 -- Create the stream object and bot object |
115 local c = verse.new(); |
125 local c = verse.new(); |
116 local b = riddim.new(c, config); |
126 local b = riddim.new(c, config); |
117 |
127 |
118 if config.debug then |
128 if config.debug then |