mod_presence: Use get_text() instead of table.concat

Wed, 05 Jan 2011 03:03:01 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 05 Jan 2011 03:03:01 +0000
changeset 3996
ea0ac2fb7c9f
parent 3995
7214dc7a5642
child 3997
ed70d20fc133

mod_presence: Use get_text() instead of table.concat

plugins/mod_presence.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_presence.lua	Tue Jan 04 00:23:51 2011 +0000
+++ b/plugins/mod_presence.lua	Wed Jan 05 03:03:01 2011 +0000
@@ -10,7 +10,7 @@
 
 local require = require;
 local pairs, ipairs = pairs, ipairs;
-local t_concat, t_insert = table.concat, table.insert;
+local t_insert = table.insert;
 local s_find = string.find;
 local tonumber = tonumber;
 
@@ -60,7 +60,7 @@
 	end
 	local priority = stanza:child_with_name("priority");
 	if priority and #priority > 0 then
-		priority = t_concat(priority);
+		priority = priority:get_text();
 		if s_find(priority, "^[+-]?[0-9]+$") then
 			priority = tonumber(priority);
 			if priority < -128 then priority = -128 end

mercurial