diff -r 7214dc7a5642 -r ea0ac2fb7c9f plugins/mod_presence.lua --- 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