Software /
code /
prosody
Comparison
tools/ejabberd2prosody.lua @ 5999:e49c0c677c5d
tools/ejabberd2prosody: Disable generating a config, as the format it generates is completely out of date.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 18 Jan 2014 17:26:02 -0500 |
parent | 5998:60d86c9e02ec |
child | 6000:0f6399c86c10 |
child | 6006:95ce7bfbfa6f |
comparison
equal
deleted
inserted
replaced
5998:60d86c9e02ec | 5999:e49c0c677c5d |
---|---|
245 properties[pair[1]] = pair[2]; | 245 properties[pair[1]] = pair[2]; |
246 end | 246 end |
247 end | 247 end |
248 muc_room(tuple[2][1], tuple[2][2], properties); | 248 muc_room(tuple[2][1], tuple[2][2], properties); |
249 end; | 249 end; |
250 config = function(tuple) | 250 --[=[config = function(tuple) |
251 if tuple[2] == "hosts" then | 251 if tuple[2] == "hosts" then |
252 local output = io.output(); io.output("prosody.cfg.lua"); | 252 local output = io.output(); io.output("prosody.cfg.lua"); |
253 io.write("-- Configuration imported from ejabberd --\n"); | 253 io.write("-- Configuration imported from ejabberd --\n"); |
254 io.write([[Host "*" | 254 io.write([[Host "*" |
255 modules_enabled = { | 255 modules_enabled = { |
273 io.write("Host \"" .. h .. "\"\n"); | 273 io.write("Host \"" .. h .. "\"\n"); |
274 end | 274 end |
275 io.output(output); | 275 io.output(output); |
276 print("prosody.cfg.lua created"); | 276 print("prosody.cfg.lua created"); |
277 end | 277 end |
278 end; | 278 end;]=] |
279 }; | 279 }; |
280 | 280 |
281 local arg = ...; | 281 local arg = ...; |
282 local help = "/? -? ? /h -h /help -help --help"; | 282 local help = "/? -? ? /h -h /help -help --help"; |
283 if not arg or help:find(arg, 1, true) then | 283 if not arg or help:find(arg, 1, true) then |