mod_admin_adhoc: Remove a TODO, our pretty_print turns out not to be helpful after all
authorFlorian Zeitz <florob@babelmonkeys.de>
Tue, 05 Feb 2013 00:43:14 +0100
changeset 5324 8602fffdd1df
parent 5323 4c30f638ff55
child 5325 97bf651e32a4
mod_admin_adhoc: Remove a TODO, our pretty_print turns out not to be helpful after all
plugins/mod_admin_adhoc.lua
--- 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);