Diff

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
line wrap: on
line diff
--- a/plugins/mod_admin_adhoc.lua	Fri Feb 08 00:27:59 2013 +0500
+++ b/plugins/mod_admin_adhoc.lua	Tue Feb 05 00:43:14 2013 +0100
@@ -299,8 +299,7 @@
 			end
 		end
 
-		local query_text = query:__tostring(); -- TODO: Use upcoming pretty_print() function
-		query_text = query_text:gsub("><", ">\n<");
+		local query_text = tostring(query):gsub("><", ">\n<");
 
 		local result = get_user_roster_result_layout:form({ accountjid = user.."@"..host, roster = query_text }, "result");
 		result:add_child(query);