Wed, 05 Jan 2011 03:03:01 +0000
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