Software /
code /
prosody
Comparison
plugins/mod_admin_adhoc.lua @ 5324:8602fffdd1df
mod_admin_adhoc: Remove a TODO, our pretty_print turns out not to be helpful after all
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Tue, 05 Feb 2013 00:43:14 +0100 |
parent | 5202:ff0d0cd07c43 |
child | 5325:97bf651e32a4 |
comparison
equal
deleted
inserted
replaced
5323:4c30f638ff55 | 5324:8602fffdd1df |
---|---|
297 end | 297 end |
298 query:up(); | 298 query:up(); |
299 end | 299 end |
300 end | 300 end |
301 | 301 |
302 local query_text = query:__tostring(); -- TODO: Use upcoming pretty_print() function | 302 local query_text = tostring(query):gsub("><", ">\n<"); |
303 query_text = query_text:gsub("><", ">\n<"); | |
304 | 303 |
305 local result = get_user_roster_result_layout:form({ accountjid = user.."@"..host, roster = query_text }, "result"); | 304 local result = get_user_roster_result_layout:form({ accountjid = user.."@"..host, roster = query_text }, "result"); |
306 result:add_child(query); | 305 result:add_child(query); |
307 return { status = "completed", other = result }; | 306 return { status = "completed", other = result }; |
308 else | 307 else |