Quantcast

Add acquire to xml.

John Pasula [08-16-10 - 16:29]
Add acquire to xml.
Filename
core.lua
diff --git a/core.lua b/core.lua
index 31e6b93..4b2c751 100644
--- a/core.lua
+++ b/core.lua
@@ -1979,6 +1979,7 @@ do
 					tinsert(text_table, "[/list]\nAcquire Methods:\n[list]")
 				elseif output == "XML" then
 					tinsert(text_table, "  </flags>")
+					tinsert(text_table, "  <acquire>")
 				end

 				-- Find out which unique acquire methods we have
@@ -2001,6 +2002,8 @@ do
 						prev = true
 					elseif output == "BBCode" then
 						tinsert(text_table, "[*] " .. i)
+					elseif output == "XML" then
+						tinsert(text_table, "<acquiremethod>"..i.."</acquiremethod>")
 					end
 				end

@@ -2013,6 +2016,7 @@ do
 				elseif output == "BBCode" then
 					tinsert(text_table, "\n[/list]")
 				elseif output == "XML" then
+					tinsert(text_table, "  </acquire>")
 					tinsert(text_table, "</recipe>")
 				end
 			end